Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Parse error When Setting-up First Time DB
Author « Topic »  

Mooseman
Advanced Member

166 Posts

Posted - 04/08/2021 :  12:23:53  
This is a brand new install...

The empty DB is created and the parameters for 'db_conn_open.php' are complete.

When I run 'createdb.php' it throws the following error:

PHP Parse error: syntax error, unexpected '[' in /home/****/public_html/store/createdb.php on line 26

Line 26 of 'createdb.php' reads: $tablenotcreated=[];

Mooseman
Advanced Member

166 Posts

Posted - 04/08/2021 :  13:58:22  
Never mind. I figured it out.

dbdave
ECT Moderator

USA
10242 Posts

Posted - 04/08/2021 :  14:14:21  
Hi Mooseman, good to hear... I was looking into that to see if I could see anything to cause that... I'm glad you got it sorted... I came up with nothing..

David

Mooseman
Advanced Member

166 Posts

Posted - 04/09/2021 :  07:53:51  
In case it might help someone else...

The problem was the PHP version selected for this site. It was too old.

Bumping-up the PHP version to 7.2 did the trick.

dbdave
ECT Moderator

USA
10242 Posts

Posted - 04/09/2021 :  08:33:32  
Thanks for posting that Bill.

David
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0 seconds. Snitz Forums 2000