• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
server error 500

#6
OK. Finally made some progress. I am debugging on the remote server with phpStorm. In index.php there is a line:

$system_path = 'system';

When I look at system (under the debugger) it is pointing at c:\xmapp\htdocs\sub_crud\system. Shouldn't this be pointing at a location on the remote server? a few lines down I see

$system_path = $_temp.DIRECTORY_SEPARATOR; which is c:\xampp\htdocs\sub_crud\system

a few lines below that I see that BASEPATH is getting defined as $system_path.

So the bottom line is that my code on the remote server is trying to use the system on my local hard drive. How do I fix this? 

I modified $system_path='\opt\bitnami\apache2\htdocs\sub_crud\system';

but now I get
PHP Code:
    if ( ! is_dir($system_path))
    {
        
header('HTTP/1.1 503 Service Unavailable.'TRUE503);
        echo 
'Your system folder path does not appear to be set correctly. Please open the following file and correct this: '.pathinfo(__FILE__PATHINFO_BASENAME);
        exit(
3); // EXIT_CONFIG
    

proof that an old dog can learn new tricks
Reply


Messages In This Thread
server error 500 - by richb201 - 09-24-2018, 12:41 PM
RE: server error 500 - by Gurutechnolabs - 09-27-2018, 03:10 AM
RE: server error 500 - by richb201 - 09-27-2018, 06:51 AM
RE: server error 500 - by InsiteFX - 09-27-2018, 10:05 AM
RE: server error 500 - by richb201 - 09-27-2018, 10:24 AM
RE: server error 500 - by richb201 - 09-29-2018, 07:34 AM
RE: server error 500 - by richb201 - 10-04-2018, 05:19 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.