Obscure Syntax Error - Possible PHP Corruption

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Jan Cobb
Forum Members
Forum Members
Posts: 17
Joined: Sun Jun 28, 2009 9:20 am

Obscure Syntax Error - Possible PHP Corruption

Post by Jan Cobb »

My site is hosted by Fasthosts on a shared server running PHP 7.2.23 or 7.3.10. On uploading cmsms-2.2.12-install.php and accessing it correctly, I get an access log entry of:

Code: Select all

82.22.133.18 - - [11/Oct/2019:20:54:07 +0100] "GET /cms2/cmsms-2.2.12-install.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:69.0) Gecko/20100101 Firefox/69.0"
and error log entries:

Code: Select all

[Fri Oct 11 20:54:07.316363 2019] [fcgid:warn] [pid 9119] [client 82.22.133.18:24317] mod_fcgid: stderr: PHP Fatal error:  Uncaught PharException: phar "/home/domains/vol2/029/2026029/user/htdocs/cms2/cmsms-2.2.12-install.php" SHA1 signature could not be verified: broken signature in /home/domains/vol2/029/2026029/user/htdocs/cms2/cmsms-2.2.12-install.php:8
[Fri Oct 11 20:54:07.330316 2019] [fcgid:warn] [pid 9119] [client 82.22.133.18:24317] mod_fcgid: stderr: Stack trace:
[Fri Oct 11 20:54:07.340302 2019] [fcgid:warn] [pid 9119] [client 82.22.133.18:24317] mod_fcgid: stderr: #0 /home/domains/vol2/029/2026029/user/htdocs/cms2/cmsms-2.2.12-install.php(8): Phar::webPhar(NULL, 'index.php')
[Fri Oct 11 20:54:07.352774 2019] [fcgid:warn] [pid 9119] [client 82.22.133.18:24317] mod_fcgid: stderr: #1 {main}
[Fri Oct 11 20:54:07.359970 2019] [fcgid:warn] [pid 9119] [client 82.22.133.18:24317] mod_fcgid: stderr:   thrown in /home/domains/vol2/029/2026029/user/htdocs/cms2/cmsms-2.2.12-install.php on line 8
Does anyone have any idea why I should get those errors on an installation file that works elsewhere?
  • Image
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1792
Joined: Wed Feb 25, 2009 4:25 am

Re: Obscure Syntax Error - Possible PHP Corruption

Post by DIGI3 »

Have you tried uploading the zip and uncompressing it on the server, rather than uploading the php file directly?
Not getting the answer you need? CMSMS support options
Jan Cobb
Forum Members
Forum Members
Posts: 17
Joined: Sun Jun 28, 2009 9:20 am

Re: Obscure Syntax Error - Possible PHP Corruption

Post by Jan Cobb »

DIGI3 wrote:Have you tried uploading the zip and uncompressing it on the server, rather than uploading the php file directly?
Yes; actually, that's what I did first and unzipped the file from the command line.

I should add that I have carried out exactly the same actions but on a different server running - allegedly - the same version of PHP, but with the expected success!

...and, further, there was already a working version of cmsms (2.2.10) to be updated, but it now gives an error:

Code: Select all

Error: at line 88 in file /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
with a message of:

Code: Select all

#0 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(738): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "CG...', 88, true)
#1 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(486): Smarty_Internal_TemplateCompilerBase->compileTag2('CGSmartImage', Array, Array)
#2 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templateparser.php(1667): Smarty_Internal_TemplateCompilerBase->compileTag('CGSmartImage', Array)
#3 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templateparser.php(2684): Smarty_Internal_Templateparser->yy_r31()
#4 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templateparser.php(2779): Smarty_Internal_Templateparser->yy_reduce(31)
#5 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(114): Smarty_Internal_Templateparser->doParse(10, '}')
#6 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(404): Smarty_Internal_SmartyTemplateCompiler->doCompile('{* \r\n*\tTemplate...', true)
#7 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(336): Smarty_Internal_TemplateCompilerBase->compileTemplateSource(Object(CMS_Smarty_Template), false, NULL)
#8 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_template_compiled.php(204): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(CMS_Smarty_Template))
#9 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_template_compiled.php(100): Smarty_Template_Compiled->compileTemplateSource(Object(CMS_Smarty_Template))
#10 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_template_compiled.php(163): Smarty_Template_Compiled->process(Object(CMS_Smarty_Template))
#11 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_template.php(206): Smarty_Template_Compiled->render(Object(CMS_Smarty_Template))
#12 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(216): Smarty_Internal_Template->render(false, 1)
#13 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(122): Smarty_Internal_TemplateBase->_execute(Object(CMS_Smarty_Template), NULL, NULL, NULL, 1)
#14 /home/domains/vol2/029/2026029/user/htdocs/cms2/modules/Navigator/action.default.php(265): Smarty_Internal_TemplateBase->display()
#15 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/classes/class.CMSModule.php(1403): include('/home/domains/v...')
#16 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/classes/class.CMSModule.php(1479): CMSModule->DoAction('default', 'mc1b0c', Array, '1')
#17 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/module.functions.php(106): CMSModule->DoActionBase('default', 'mc1b0c', Array, '1', Object(CMS_Smarty_Template))
#18 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/classes/class.CMSModule.php(253): cms_module_plugin(Array, Object(CMS_Smarty_Template))
#19 /home/domains/vol2/029/2026029/user/htdocs/cms2/tmp/templates_c/650460e1799b95e04d87ae3036cb2c53a06b88df_0.tpl_body.14.php(30): CMSModule::function_plugin(Array, Object(CMS_Smarty_Template))
#20 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_template_resource_base.php(128): content_5d8fcfe0c32f33_20504503(Object(CMS_Smarty_Template))
#21 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_template_compiled.php(172): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(CMS_Smarty_Template))
#22 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_template.php(206): Smarty_Template_Compiled->render(Object(CMS_Smarty_Template))
#23 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(216): Smarty_Internal_Template->render(false, 0)
#24 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(107): Smarty_Internal_TemplateBase->_execute(Object(CMS_Smarty_Template), 'p1', NULL, NULL, 0)
#25 /home/domains/vol2/029/2026029/user/htdocs/cms2/lib/classes/internal/class.CMS_Smarty_Template.php(20): Smarty_Internal_TemplateBase->fetch(NULL, 'p1', NULL, NULL)
#26 /home/domains/vol2/029/2026029/user/htdocs/cms2/index.php(158): CMS_Smarty_Template->fetch()
#27 {main}
  • Image
Jan Cobb
Forum Members
Forum Members
Posts: 17
Joined: Sun Jun 28, 2009 9:20 am

[Solved] Obscure Syntax Error - Possible PHP Corruption

Post by Jan Cobb »

Notwithstanding the conflicting evidence I have found when attempting to work through this problem, I've come to the conclusion that the installer somehow became corrupted and, simultaneously, another error was created on another working core file. I shall start again from scratch!
  • Image
Post Reply

Return to “CMSMS Core”