Problems moving site to another domain |
(09-07-2019, 05:43 PM)John_Betong Wrote: > Do you mean placing these lines in the original script 1 by 1 line at a time and checking for errors?Hi, I receive this error code DEBUG START Source ==> CodeIgniter-3-1-9/index.php Corrected: invalid second ini_set() parameter phpversion() ==> 7.1.32 DEBUG END A PHP Error was encountered Severity: Warning Message: session_start(): Cannot send session cookie - headers already sent by (output started at /home/abc/public_html/index.php:7) Filename: Session/Session.php Line Number: 143 Backtrace: File: /home/abc/public_html/application/controllers/Index.php Line: 25 Function: __construct File: /home/abc/public_html/index.php Line: 329 Function: require_once A PHP Error was encountered Severity: Warning Message: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/abc/public_html/index.php:7) Filename: Session/Session.php Line Number: 143 Backtrace: File: /home/love/public_html/application/controllers/Index.php Line: 25 Function: __construct File: /home/abc/public_html/index.php Line: 329 Function: require_once A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /home/abc/public_html/index.php:7) Filename: core/Common.php Line Number: 564 Backtrace:
That's great because the error messages prove PHP is working correctly and the PHP version is sufficient.
Rem out six lines starting and including echo 'DEBUG START'; until echo '<hr><hr>'; then run index.php again. There should be two error messages starting the system and application folders are not set. Insert the correct paths for the two folders and try again. Best of luck ![]()
(09-08-2019, 07:50 PM)John_Betong Wrote: That's great because the error messages prove PHP is working correctly and the PHP version is sufficient. The blank screen reappears when I rem out the 6 lines and I did not see any error message
From the error messages it looks like the first controller to be called is in /home/love/public_html/application/controllers/index.php then the other site is being called by the name of /home/abc/public_html.
I assume the application/config/config.php paths is set incorrectly. Please set the correct path and base_url Backtrace: File: /home/love/public_html/application/controllers/Index.php Line: 25 Function: __construct File: /home/abc/public_html/index.php Line: 329
(09-09-2019, 05:46 AM)John_Betong Wrote: From the error messages it looks like the first controller to be called is in /home/love/public_html/application/controllers/index.php then the other site is being called by the name of /home/abc/public_html. The actual message is Backtrace: File: /home/abc/public_html/application/controllers/Index.php Line: 25 Function: __construct File: /home/abc/public_html/index.php Line: 329 "I assume the application/config/config.php paths is set incorrectly. Please set the correct path and base_url" --> which file do I change to set the correct path and base_url? I have done it properly in config.php but it doesn;t seem to be working.
I still do not know what CI Verion is being used. config php is the file to make amendments.
What changes were made? It appears the changes are incorrect. The installation document: https://devdocs.io/codeigniter/installation/index
(09-09-2019, 08:04 PM)John_Betong Wrote: I still do not know what CI Verion is being used. config php is the file to make amendments.CI version is 3-1-9 I need to look at the changes closely to see what is different. Is that the most likely file that is causing the problem? Should I try using the default config from installation file and see if the site loads?
(09-11-2019, 04:05 AM)John_Betong Wrote: Please supply a copy of config.php I receive this error message on index.php when I use the default config.php in the installation file A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: config/routes.php Line Number: 69 Backtrace: File: /home/abc/public_html/application/config/routes.php Line: 69 Function: _error_handler File: /home/abc/public_html/index.php Line: 315 Function: require_once A PHP Error was encountered Severity: Warning Message: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/abc/public_html/system/core/Exceptions.php:271) Filename: Session/Session.php Line Number: 143 Backtrace: File: /home/abc/public_html/application/controllers/Index.php Line: 25 Function: __construct File: /home/abc/public_html/index.php Line: 315 Function: require_once A PHP Error was encountered Severity: Warning Message: session_regenerate_id(): Cannot regenerate session id - session is not active Filename: Session/Session.php Line Number: 718 Backtrace: File: /home/abc/public_html/application/controllers/Index.php Line: 25 Function: __construct File: /home/abc/public_html/index.php Line: 315 Function: require_once A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /home/abc/public_html/system/core/Exceptions.php:271) Filename: core/Common.php Line Number: 564 Backtrace: |
Welcome Guest, Not a member yet? Register Sign In |