Invalid CFML construct error with Simple ColdBox Application - coldfusion

I want to make a simple ColdBox application. So I used the instructions in this link and downloaded coldbox_3.5.2. But when I try to view this url in my browser:
http://127.0.0.1/coldbox_3.5.2/samples/
I am getting following error :
Invalid CFML construct found on line 28 at column 22.
ColdFusion was looking at the following text:
{
The CFML compiler was processing:
A script statement beginning with this.flash on line 28, column 9.
A cfscript tag beginning on line 12, column 2.
As I am trying this for the first time, I have no idea what is causing the error. Can anyone help me understand the error?

The error is because CF8 (build 8,0,0,176276) did not support nested inline structs.
As per its requirements, ColdBox needs CF 8.0.1 (build 8,0,1,195765) or above.
http://wiki.coldbox.org/wiki/Installation.cfm

Related

Django-wiki installed but root article throws global flag error

I have installed Django-wiki in a fresh virtual Django install. My initial page comes up, the site allows for user registration. Everything looks well until I enter my first Root article.
I have kept it rudimentary with a title "Test" and the body just a simple "Hello" but when I save I get this error:
error at /
global flags not at the start of the expression at position 9
Request Method: GET
Request URL: http://xxxxxxx.preprod.xxxx:8000/
Django Version: 4.0.8
Exception Type: error
Exception Value:
global flags not at the start of the expression at position 9
Exception Location: C:\python\Lib\re_parser.py, line 841, in _parse
Python Executable: C:\daas_django_apps\env\Scripts\python.exe
Python Version: 3.11.0
Error during template rendering
In template C:\daas_django_apps\env\Lib\site-packages\wiki\templates\wiki\view.html, error at line 7
Line 7 is:
{% wiki_render article %}
I have tried checking all my configuration and it seems ok and matches Django-Wiki installation example. Tried changing user ownership of the article and creating a group for viewing but to no avail.
Any help would be appreciated.
Thank you!
Indeed, the use of inline global flags (eg: (?im)) in two regular expressions are now raising an exception, instead of a warning before 3.11 (https://github.com/python/cpython/issues/91222).
A fix has been merged on the main branch and it will be released soon if there are no other issues with 3.11.
See https://github.com/django-wiki/django-wiki/pull/1243 for more details.

Django 2 URL <int: > notation isn't behaving as expected

I have been migrating a platform from django 1.11 to django 2 for the past week with no issues, up until today, when I tried to update my urls. I have these 3 lines of code:
1. url(r'^track/(?P<track_id>[0-9]+)/user/playlists', views.music),
2. path(r'track/<int:track_id>/user/playlists', views.music),
3. re_path(r'^track/(?P<track_id>[0-9]+)/user/playlists',views.music),
the original line that worked fine in django 1.11.
the new line that I created to replace Line 1. I removed the caret '^' and replaced the RegEx.
the line I am using right now because it is working fine.
My issue here is that my test fails when I use Line 2 but passes when I use Line 3.What could possible cause this behavior?
PS: The test that fails is just a test that passes 14 to the URL and checks the response. The response should be 200 but is 404 instead. In fact, I tried pdb inside the music method, but the test finished without stopping there, which means that it didn't even go in.
self.check_response('/track/%d/user/playlists/' % 14)
You're still using a regular expression in 2 because of the 'r'.
Make it like this:
path('track/<int:track_id>/user/playlists', views.music),
More details can be found here.

Opencart orders not importing to ShipStation

My Opencart store has stopped importing orders to ShipStation ever since I updated my Journal theme. I know I probably have to update OpenCart which I am hiring someone to do but I need a workaround till then. Thank you in advance.
I get this error from ShipStation:
"An error occurred attempting to update orders: Invalid XML. Error: 'There are multiple root elements. Line 3, position 14.' We received: ' Journal Installation Error You are using an outdated OpenCart 2.x version. Journal only works with the latest Opencart 2.x version.Please download and install'"
The error log on my Opencart shipstation backend says this:
2016-07-20 12:27:06 - PHP Notice: Undefined offset: 1 in /home/garagist/public_html/store/shipstation/controller/export.php on line 23
Journal support said this to fix it and I have no idea how to do that:
You need to edit /shipstation/config.php file and add this line (anywhere in it), so the Journal engine won't be loaded for that extension:
define('BLOCK_JOURNAL', true);
First you installed the wrong version of Journal. I am very familiar with it and I know the developers provide a template for each version in the zip file from codecanyon. Even if you were running 1.5x, it's in there. Fix that problem first.
Second, ShipStation has nothing to do with journal, you have server issues now (probably due to the incorrect version of journal). I've never had to block journal from the ShipStation config file. That's probably why it isn't working.
FYI, I have around 5 shops and over 10 clients running journal and shipstation, no isuses at all ever. Versions range from OC 1.5-2.3.0.2.
You don't need to upgrade, don't pay if you don't have to.
Update: From Journal Directly "Compatible with Opencart: 1.5.4.x / 1.5.5.x / 1.5.6.x / 2.0.x / 2.1.x / 2.2.x / 2.3.x" Seems counterintuitive to support 2.0x if they're going to force you to update your OC installation when the theme is installed doesn't it?
Good luck.

How to fix "Unsupported Schema format for unwrapping! found all but expected sequence" in cfinvoke CF11?

I'm running into an odd issue when invoking a webservice from the cfinvoke tag on ColdFusion 11 Enterprise Edition. The error message I am getting is:
Unsupported Schema format for unwrapping! found all but expected
sequence
The stack trace starts with:
org.apache.axis2.wsdl.codegen.CodeGenerationException: Unsupported
Schema format for unwrapping! found all but expected sequence at
org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.processXMLSchemaSequence(SchemaUnwrapperExtension.java:405)
at...
Has anyone else encountered this issue or know how to fix it? A big thank you in advance for any help or advice.
The reason that I had this issue is that the web service is using Axis1. ColdFusion 11 by default assumes that the web service is using Axis2.
To fix it, I've added the wsversion attribute to the <cfinvoke> tag and set its value to 1.

ColdFusion Google Adwords Business Component Error

I am using Martin Orth's ColdFusion API for Google Adwords. I have been able to fix some errors to get the API working in most cases, but am running into a roadblock when I try to use the business.cfc component. I try to create the component the same way I have successfully created them for other components of the API with the syntax:
cfset oBusiness=createObject("component","com.google.adwords.api.v12.business")>
The results in a:
coldfusion.xml.rpc.CFCInvocationException: [java.lang.ClassNotFoundException : com.google.adwords.api.v12.business][coldfusion.runtime.CfJspPage$NoSuchTemplateException : Could not find the ColdFusion Component or Interface long.]
even though the business.cfc file is located as the specified path and has not been modified. Has anyone been able to get this component to work? If so, can you post a copy of your business.cfc file? Thanks in advance.
I just rewrote the entire code minus comments and hints (in past files there were many illegal chars) in a new file and it worked fine.
There is a new version (V201101) of the AdWords API library for ColdFusion at http://www.cfsolutions.de/coldfusion_adwords_api/docs/index.cfm