Page 1 of 1

Can't Access Admin

Posted: Mon May 06, 2024 1:10 pm
by Xpajun
This is on 1.0.8.21 and php 7.3.33

This is a weird one - I try to access admin and get a blank page the error code is as follows:

Code: Select all

[06-May-2024 12:50:26 UTC] PHP Warning:  require(includes/system/autoloader.php): failed to open stream: No such file or directory in /home/*******/public_html/store/admin/includes/application_top.php on line 18
[06-May-2024 12:50:26 UTC] PHP Fatal error:  require(): Failed opening required 'includes/system/autoloader.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/*******/public_html/store/admin/includes/application_top.php on line 18

First suspicion is admin>includes>configure.php

Code: Select all

   if (file_exists('includes/local/configure.php')) { // for developers
    include 'includes/local/configure.php';
    return;
  }

// Set the level of error reporting
  error_reporting(E_ALL);

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
  define('HTTP_SERVER', 'https://xpajun.com'); // eg, http://localhost or - https://localhost should not be NULL for production servers
  define('COOKIE_OPTIONS', [
    'lifetime' => 0,
    'domain' => '',
    'path' => '',
    'samesite' => 'Lax',
  ]);

  define('DIR_FS_DOCUMENT_ROOT', '/home/mudlarki/public_html/store'); // where your pages are located on the server. if $DOCUMENT_ROOT doesn't suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
  define('DIR_WS_ADMIN', '/store/admin/');
  define('DIR_FS_ADMIN', '/home/*********/public_html/store/admin/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

  // leave blank or omit to use MySQL sessions
  define('DIR_FS_SESSION', '');

  define('HTTP_CATALOG_SERVER', 'https://xpajun.com');
  define('DIR_WS_CATALOG', '/store/');
  define('DIR_FS_CATALOG', '/home/*******/public_html/store/');

// set default timezone if none exists (PHP 5.3 throws an E_WARNING)
  date_default_timezone_set(date_default_timezone_get());

The weird bit is that I have an identical set up, using the same database, as a test site and that works perfectly. Did thin it mabe two stores using the same database but it seems not to be.

Re: Can't Access Admin

Posted: Mon May 06, 2024 3:22 pm
by bonbec
Perhaps a line of research: Assuming that the configure.php files are ok, if two sites use the same database, both sites must have the same addons, otherwise there are problems.

Re: Can't Access Admin

Posted: Mon May 06, 2024 4:19 pm
by Xpajun
bonbec wrote: Mon May 06, 2024 3:22 pm Perhaps a line of research: Assuming that the configure.php files are ok, if two sites use the same database, both sites must have the same addons, otherwise there are problems.
I can follow that and I did have that thought so removed the database details for the testsite which does have the same add-ons anyway

Re: Can't Access Admin

Posted: Mon May 06, 2024 7:59 pm
by Xpajun
In addition, although possibly not Phoenix related, https://xpajun.com is recognised https://xpajun.com/admin can't be found - even though the directory is there

Re: Can't Access Admin

Posted: Tue May 07, 2024 4:00 pm
by Xpajun
Xpajun wrote: Mon May 06, 2024 7:59 pm In addition, although possibly not Phoenix related, https://xpajun.com is recognised https://xpajun.com/admin can't be found - even though the directory is there
or maybe not - works on 1.0.8.20 but not 1.0.8.21

error code:

Code: Select all

[06-May-2024 12:50:26 UTC] PHP Warning:  require(includes/system/autoloader.php): failed to open stream: No such file or directory in /home/*******/public_html/store/admin/includes/application_top.php on line 18
[06-May-2024 12:50:26 UTC] PHP Fatal error:  require(): Failed opening required 'includes/system/autoloader.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/*******/public_html/store/admin/includes/application_top.php on line 18

testing 1.0.8.21 php 1.7.33

Re: Can't Access Admin

Posted: Tue May 07, 2024 4:35 pm
by bonbec
Check that you have nothing in your includes/local/configure.php directory if you are testing on a server and not on your computer

Re: Can't Access Admin

Posted: Wed May 08, 2024 11:25 am
by ecartz
Xpajun wrote: Tue May 07, 2024 4:00 pm require(includes/system/autoloader.php)
The path is wrong, suggesting that your DIR_FS_CATALOG is not set properly.