Answer the question
In order to leave comments, you need to log in
Hosting error?
Hello, everything works fine on MAMP. I declared session_start at the beginning of index.php, $paga = $_GET['page'];
and on the hosting it shows an error how to fix it?
here are the errors:
Warning: session_start(): open(/storage/ssd1/680/2061680/tmp/sess_grj3a1lqnoavu1l9e7embrdlsc, O_RDWR) failed: No such file or directory (2) in /storage/ssd1/680/2061680/public_html/index. on line 2 Warning: session_start(): Failed to read session data: files (path: /storage/ssd1/680/
2061680
/tmp) in /storage/ssd1/680/2061680/public_html/index.php
: Undefined index: page in /storage/ssd1/680/2061680/public_html/index.php on line
5
Answer the question
In order to leave comments, you need to log in
Try to put the rights 777 everywhere. But only for the test. Then they must be made according to the project.
wash it in Russian
You have problems with access to this directory, and 777 is not a fact that will help, since the files are created dynamically with their own rights anyway, and 777 is not a panacea.
You need to look at the session settings in php.ini
At least you will have enough rights to store the session in your site folder, change the settings for it, make sure that the sessions work and after that you MUST delete the sessions from this folder and configure them outside the site root
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question