Can't Access Admin

Open to all! Ask other shopowners for help.
Post Reply
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Can't Access Admin

Post 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.
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
bonbec
Contributor
Posts: 190
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.7
Has thanked: 54 times
Been thanked: 40 times

Re: Can't Access Admin

Post 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.
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: Can't Access Admin

Post 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
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: Can't Access Admin

Post 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
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: Can't Access Admin

Post 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
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18
User avatar
bonbec
Contributor
Posts: 190
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.7
Has thanked: 54 times
Been thanked: 40 times

Re: Can't Access Admin

Post 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
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Can't Access Admin

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply