Parse error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Parse error

Post by maryjane »

I just upgraded my CMS web site to 1.11.7. I was trying to upgrade my modules and download CGBlog and when I do I get this message:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/maryjane/public_html/modules/CGBlog/method.install.php on line 78

I tried getting my hosting site to help but they threw it back to me because they did not want to fool with the code.

Can you help please.
my site is: maryjaneparkerart.com in case you need it.
Thanks,
Mary Jane
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: Parse error

Post by Jo Morg »

Although it appears to be a bug, it may not be.
We need you to paste the system info from your cmsms installation (there is a link to a paste ready block on the admin side).
If you uploaded the module by ftp there could be corrupted files, or your server may still be running PHP 5.2 while some modules already need (CGblog for sure does) 5.3 or higher. Also upgraded from which version and which steps did you take? That would help us help you.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Re: Parse error

Post by maryjane »

Well, I am not very savvy so I tried to upload the latest version myself and ran into problems so I contacted my hosting site and asked them to do it. The person who helped me said that he had some problems and had to keep deactivating modules until he found the one that was hanging it up.

Here is what he wrote:
It has failed due to incompatibility of the jQuery module. This is a 3rd party module and the integrated version is not working with the latest script release. The following error message has been displayed:

Fatal error: Class 'CmsObject' not found in /home/maryjane/public_html/modules/jQuery/libraries/classes/jQueryBase.class.php on line 10

Thus the upgrade has failed.

I have been disabling the modules one by one until I found the problematic extension. I have disabled it permanently and managed to upgrade your script to version 1.11.7.

If you need this extension look for a version which is compatible with your CMS Made Simple installation and integrate it.

Most things work now except I cannot upload or upgrade the modules without getting this error message.
Thanks,
Mary Jane
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: Parse error

Post by Jo Morg »

Depending on which version of CMSMS you started with before the upgrade, some modules will have possible upgrades some others won't. JQuery is one of those modules that have been marked on the forge as stale. It's not a critical module as there is not much need for a module for JQuery, but if needed there is jquerytools.
Also I think that, in cases like this, you may be better off asking for commercial help, but that is just a suggestion. An upgrade can be quite simple or complex, but it helps when you have with you someone who know the system.
Just my 2 cents.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Re: Parse error

Post by maryjane »

Yes, I did have someone upload it for me. I paid my web hosting server to upload. They have helped me with a few gliches after the upload but with this one they basically said I should ask the CMSMS developers because they do not really know what is causing the problem.

The issue is not really with JQyery, I just quoted that so you could see that they had some issues with the modules while uploading it. I generally do all of my own maintenance so I am frustrated that when trying to add a module on, which I have done frequently in the past, I get this parse error.
In this case I was trying to upload CGBlog.

Any ideas?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: Parse error

Post by Jo Morg »

Jo Morg wrote:We need you to paste the system info from your cmsms installation (there is a link to a paste ready block on the admin side).
Please post this info here, otherwise it will be difficult to know.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Re: Parse error

Post by maryjane »

Here it is:
----------------------------------------------

Cms Version: 1.11.7

Installed Modules:

CMSMailer: 5.2.1
FileManager: 1.4.3
MenuManager: 1.8.5
ModuleManager: 1.5.5
News: 2.12.12
Printing: 1.1.1
Search: 1.7.8
ThemeManager: 1.1.8
TinyMCE: 2.9.12
CGExtensions: 1.37.2
jQuery: 1.1.2
JQueryTools: 1.0.10
LightBox: 1.0.1
Gallery2Embedded: 0.0.2
Gallery: 1.6.1
FormBuilder: 0.7.3
CGSimpleSmarty: 1.7
Comments: 1.9.2
CGFeedback: 1.2.1
CMSPrinting: 1.0.4
MicroTiny: 1.2.5

Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 24000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:

phpversion: 5.3.27
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 8192
memory_limit: 128M
max_execution_time: 45
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 24M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.32
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages

----------------------------------------------
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Parse error

Post by Dr.CSS »

When doing CMSMS upgrades it is best to go to Module Manager and upgrade any modules it says are ready for upgrade, then upgrade CMSMS, then look at ModMan again for any needing upgrade, upgrade them then CMSMS, rinse, repeat...

Always best to upgrade modules then CMSMS itself...

All new versions of CG modules require PHP 5.3.*...
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: Parse error

Post by Jo Morg »

Ok, as there is no information on what version of CGBlog you where trying to install, and as apparently 1.10.1 had a bug (and you have PHP 5.3.27 on the server), try the new version just released 1.10.2.
HTH
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Re: Parse error

Post by maryjane »

I will, thanks alot.

By the way, do you think that stuff at the end of the system information where it said I might have trouble adding modules and pages is something that needs to be fixed for this to work?
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Re: Parse error

Post by maryjane »

I just looked and the version of CGBlog I was trying to upload is 1.10.2 so that is not the problem I guess.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: Parse error

Post by Jo Morg »

Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages
maryjane wrote:By the way, do you think that stuff at the end of the system information where it said I might have trouble adding modules and pages is something that needs to be fixed for this to work?
IIRC this test is not reliable from a php script, so this is more of a notice than anything else. If the personnel from the hosting server could install modules and/or you could install modules, that shouldn't be a problem.
Another question you didn't answer was: "how are you uploading the module?"...
Via ftp? Via Module Manager? Other?...
FTP for one is not a very reliable method of uploading the files, and chances are that these may get corrupted during the process.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Re: Parse error

Post by maryjane »

I have been using module manager. It usually works fine but since the upgrade, I have been having this problem.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: Parse error

Post by Jo Morg »

I just made a fresh install of CGBlog without any errors whatsoever. Whatever problem you may have, probably has to do with the CMSMS upgrade route...
These are the suggested steps to upgrade. You may have to go back to a previous backup (pre-upgrade) and try to follow those steps. I also think you should do a checksum to check for missing files. Something may have gone wrong during the upgrade.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Modules/Add-Ons”