cms builder 2.15 upgrade error

10 posts by 5 authors in: Forums > CMS Builder
Last Post: June 19, 2012   (RSS)

By design9 - June 18, 2012

I upgraded from v2.14 to v2.15 and I get the following error when trying to access the code generator:

Parse error: syntax error, unexpected '?' in C:\inetpub\charlotteparent\cmsAdmin\generator_functions.php on line 49

Thanks!
April

Re: [design9] cms builder 2.15 upgrade error

By Codee - June 18, 2012

I just had EXACTLY the same thing occur...upgrading from v2.14 to v2.15, same error when I clicked on the button "Code Generator" after creating a new section on a website.

and lines 48-50 in that CMSB file are:
// Replace <%php and %>, makes writing PHP tags MUCH easier
$code = str_replace('<%', '<?', $code);
$code = str_replace('%>', '?>', $code);

Re: [equinox69] cms builder 2.15 upgrade error

By Chris - June 18, 2012

We'll look into this more closely tomorrow, but in the meantime, please try this if you'd like:

// Replace <%php and %>, makes writing PHP tags MUCH easier
$code = str_replace('<%', '<'.'?', $code);
$code = str_replace('%>', '?'.'>', $code);

All the best,
Chris

Re: [equinox69] cms builder 2.15 upgrade error

By Jason - June 19, 2012

Hi,

Could you please send in a [url http://www.interactivetools.com/support]2nd Level Support[/url] request so we can take a closer look at this issue?

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] cms builder 2.15 upgrade error

By Codee - June 19, 2012

Submitted one minute ago.

Re: [equinox69] cms builder 2.15 upgrade error

By Dave - June 19, 2012

Hi equinox69,

We're working on a patch for this, but here is a work-around.

Check your PHP Info page here:
admin.php?menu=admin&action=phpinfo

At the top there will be some lines that indicate where php.ini is located. It might be in the /cmsAdmin/ folder or it might be somewhere else.

If you are able to edit that file, try adding this to the bottom:
asp_tags = Off

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] cms builder 2.15 upgrade error

By Codee - June 19, 2012

Hi Dave,
Unfortunately this client uses Yahoo Hosting (which I strongly DO NOT recommend) and any changes to the php.ini file will have to go through them. I will put in a request to them but a CMSB fix would be better in the long run. Thanks.

Re: [equinox69] cms builder 2.15 upgrade error

By Chris - June 19, 2012 - edited: June 19, 2012

Here's a patch for the issue.

To apply this patch, copy the files in this zip into the following directory, overwriting the files there:

cmsAdmin/lib/menus/_codeGenerator/

Please let me know if you have any problems.
All the best,
Chris
Attachments:

cmsb215patch.zip 19K

Re: [Chris] cms builder 2.15 upgrade error

By Codee - June 19, 2012

Looks like that fixed the issue! KLUTCH!! Thanks Chris!