• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Parse error: syntax error, unexpected '['
PostPosted: Tue May 21, 2019 10:40 pm 
Offline
Forum Members
Forum Members

Joined: Thu Feb 07, 2008 10:28 pm
Posts: 142
Parse error: syntax error, unexpected '[' in /nfs/c01/h07/mnt/9546/domains/domain.com/html/index.php on line 134

The dev site was working fine, then no one touched it for a few days. When we returned after the weekend, we see the following error and cannot access the front or back-end of the site. We checked index.php on the indicated line and nothing seems to be amiss.

Has anyone seen this issue before? What typically causes it? We didn't change anything, not even content.

This is the latest version of CMSMS, relatively new install. CGBlog, LISE and Sitemap Manager installed. There are a few articles, some content pages, sitemaps and templates.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Parse error: syntax error, unexpected '['
PostPosted: Wed May 22, 2019 12:07 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 815
Location: Victoria, BC
Any chance someone changed the PHP version?

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Parse error: syntax error, unexpected '['
PostPosted: Wed May 22, 2019 12:38 am 
Offline
Forum Members
Forum Members

Joined: Thu Feb 07, 2008 10:28 pm
Posts: 142
DIGI3 \DIGI3:
Any chance someone changed the PHP version?


Thank you for your time, DIGI. Not that I know of, would anyone other than me be able to change PHP but maybe the host did without my knowledge. It was set to 5.6.21 but now I changed it to PHP 7. I get a different error, now:

Warning: count(): Parameter must be an array or an object that implements Countable in /nfs/c01/h07/mnt/9546/domains/domain.com/html/modules/LISE/LISE.module.php on line 751


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Parse error: syntax error, unexpected '['
PostPosted: Wed May 22, 2019 12:44 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 815
Location: Victoria, BC
That's just a warning, you can ignore that until the next version of LISE is released. Sounds like your PHP version got changed then, if that fixed the main problem (note that if you have some of CG's latest modules, you'll need PHP 7.2)

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Parse error: syntax error, unexpected '['
PostPosted: Wed May 22, 2019 12:54 am 
Offline
Forum Members
Forum Members

Joined: Thu Feb 07, 2008 10:28 pm
Posts: 142
DIGI3 \DIGI3:
That's just a warning, you can ignore that until the next version of LISE is released. Sounds like your PHP version got changed then, if that fixed the main problem (note that if you have some of CG's latest modules, you'll need PHP 7.2)


Thanks again DIGI, it's v7.2.12. I wish I could ignore it, but it's not rendering anything at all. Front end looks like:

$1:
Screen Shot 2019-05-21 at 5.42.07 PM.png
Screen Shot 2019-05-21 at 5.42.07 PM.png [ 66.22 KiB | Viewed 247 times ]


/admin looks like:
$1:
Screen Shot 2019-05-21 at 5.43.51 PM.png
Screen Shot 2019-05-21 at 5.43.51 PM.png [ 102.72 KiB | Viewed 247 times ]


when I go to /admin/login.php, it renders the login with errors:
$1:
Screen Shot 2019-05-21 at 5.47.15 PM.png
Screen Shot 2019-05-21 at 5.47.15 PM.png [ 84.09 KiB | Viewed 247 times ]


When I log in, I just get a white page with error lines:
\$1:
Warning: count(): Parameter must be an array or an object that implements Countable in /nfs/c01/h07/mnt/9546/domains/domain.com/html/modules/LISE/LISE.module.php on line 751

Warning: count(): Parameter must be an array or an object that implements Countable in /nfs/c01/h07/mnt/9546/domains/domain.com/html/modules/LISE/LISE.module.php on line 751

Warning: count(): Parameter must be an array or an object that implements Countable in /nfs/c01/h07/mnt/9546/domains/domain.com/html/modules/LISE/LISE.module.php on line 751

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h07/mnt/9546/domains/domain.com/html/modules/LISE/LISE.module.php:751) in /nfs/c01/h07/mnt/9546/domains/domain.com/html/lib/classes/class.cms_cookies.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h07/mnt/9546/domains/domain.com/html/modules/LISE/LISE.module.php:751) in /nfs/c01/h07/mnt/9546/domains/domain.com/html/lib/classes/class.cms_cookies.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h07/mnt/9546/domains/domain.com/html/modules/LISE/LISE.module.php:751) in /nfs/c01/h07/mnt/9546/domains/domain.com/html/lib/classes/class.cms_cookies.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h07/mnt/9546/domains/domain.com/html/modules/LISE/LISE.module.php:751) in /nfs/c01/h07/mnt/9546/domains/domain.com/html/lib/classes/class.cms_cookies.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h07/mnt/9546/domains/domain.com/html/modules/LISE/LISE.module.php:751) in /nfs/c01/h07/mnt/9546/domains/domain.com/html/lib/classes/class.cms_cookies.php on line 106


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Parse error: syntax error, unexpected '['
PostPosted: Wed May 22, 2019 1:19 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 815
Location: Victoria, BC
You may need to clear the site cache after switching PHP versions. You should probably also set display_errors to 0 in your php setup and just have them go to log.

Clear the cache by removing everything in tmp/cache and tmp/templates_c

Usually warnings don't result in a white screen, but if you still get one in admin after clearing the cache, go to /modules and rename the LISE folder temporarily. If admin works after that, you'll at least know where to focus your efforts. You'll need to comment out any LISE calls in your pages/templates to get the frontend to work.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting