Hi all,
I've recently had to build an new machine and am slowly remembeing how the previous was setup (painful process).
Anyway, I've installed MySQL 8 which is fine and ran ok before but am now using PHP 7.4. When accessing the admin folder to install everything I get the following errors:
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\index.php on line 26
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\header.php on line 217
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\header.php on line 241
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\header.php on line 246
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\functions.php on line 2132
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\functions.php on line 2235
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 600
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 624
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 652
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 659
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 660
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 677
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 678
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 693
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 749
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 784
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 843
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 877
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 920
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 1033
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 1048
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 1049
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\HTMLParser.php on line 64
Deprecated: Function get_magic_quotes_gpc() is deprecated in C:\Users\Sites\admin\header.php on line 301
Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in C:\Users\Sites\admin\includes\mysql2i\mysql2i.class.php:48 Stack trace: #0 C:\Users\Sites\admin\includes\mysql2i\mysql2i.func.php(27): mysql2i::mysql_connect('localhost', 'root', 'password') #1 C:\Users\Sites\admin\db.php(90): mysql_connect('localhost', 'root', 'password') #2 C:\Users\Sites\admin\header.php(312): KDB->connect() #3 C:\Users\Sites\admin\index.php(7): require_once('C:\\Users\\Si...') #4 {main} thrown in C:\Users\Sites\admin\includes\mysql2i\mysql2i.class.php on line 48
Not sure if it's me being thick - i.e. Misconfiguring PHP (most likely) or if there's a problem with 7.4 and I would be better using an older version of PHP.
FYI: Info file works fine and i've removed some of the path name for privacy.
Thanks
Ian
I've recently had to build an new machine and am slowly remembeing how the previous was setup (painful process).
Anyway, I've installed MySQL 8 which is fine and ran ok before but am now using PHP 7.4. When accessing the admin folder to install everything I get the following errors:
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\index.php on line 26
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\header.php on line 217
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\header.php on line 241
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\header.php on line 246
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\functions.php on line 2132
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\functions.php on line 2235
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 600
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 624
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 652
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 659
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 660
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 677
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 678
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 693
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 749
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 784
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 843
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 877
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 920
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 1033
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 1048
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\parser.php on line 1049
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\Users\Sites\admin\parser\HTMLParser.php on line 64
Deprecated: Function get_magic_quotes_gpc() is deprecated in C:\Users\Sites\admin\header.php on line 301
Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in C:\Users\Sites\admin\includes\mysql2i\mysql2i.class.php:48 Stack trace: #0 C:\Users\Sites\admin\includes\mysql2i\mysql2i.func.php(27): mysql2i::mysql_connect('localhost', 'root', 'password') #1 C:\Users\Sites\admin\db.php(90): mysql_connect('localhost', 'root', 'password') #2 C:\Users\Sites\admin\header.php(312): KDB->connect() #3 C:\Users\Sites\admin\index.php(7): require_once('C:\\Users\\Si...') #4 {main} thrown in C:\Users\Sites\admin\includes\mysql2i\mysql2i.class.php on line 48
Not sure if it's me being thick - i.e. Misconfiguring PHP (most likely) or if there's a problem with 7.4 and I would be better using an older version of PHP.
FYI: Info file works fine and i've removed some of the path name for privacy.
Thanks
Ian