Post by smokelight » Thu Apr 27, 2023 10:57 pm

hello
mysite.com/admin page is not loading

i get this error maseg please help me to understand what i can do

[27-Apr-2023 14:31:33 UTC] PHP Warning: require_once(/home/m81fe09h6nfi/public_html/admin/system/startup.php): failed to open stream: No such file or directory in /home/m81fe09h6nfi/public_html/admin/index.php on line 17
[27-Apr-2023 14:31:33 UTC] PHP Fatal error: require_once(): Failed opening required '/home/m81fe09h6nfi/public_html/admin/system/startup.php' (include_path='.:/opt/alt/php73/usr/share/pear') in /home/m81fe09h6nfi/public_html/admin/index.php on line 17

New member

Posts

Joined
Wed Nov 23, 2011 1:59 am

Post by tdaubs » Thu Apr 27, 2023 11:18 pm

If the front end of the site is working but the admin is broken, you might check your config.php file in the admin folder. Double check that the paths are correct.

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by smokelight » Thu Apr 27, 2023 11:31 pm

the config file look ok

New member

Posts

Joined
Wed Nov 23, 2011 1:59 am

Post by tdaubs » Thu Apr 27, 2023 11:42 pm

Try this...

Create a file in the admin directory called path.php. In it, place this code...

Code: Select all

<?php

echo __DIR__;

?>
Then call the file from your browser. https://www.yoursite.com/admin/path.php

Compare the path that PHP is showing with what you have in your config.php file within the admin directory.

Remove the file once you're done troubleshooting.

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by smokelight » Fri Apr 28, 2023 1:20 am

FIRST THANK YOU VERY MUCH FOR YOUR HELP !

i did it when i go to the link :
http://mywebsite.com/admin/path.php

this is what i got : /home/m81fe09h6nfi/public_html/admin

and this is copy of my admin/config :

<?php
// HTTP
define('HTTP_SERVER', 'http://mywebsite.com/admin/');
define('HTTP_CATALOG', 'http://mywebsite.com/');
// HTTPS
define('HTTPS_SERVER', 'http://mywebsite.com/admin/');
define('HTTPS_CATALOG', 'http://mywebsite.com/');
// DIR
define('DIR_APPLICATION', '/home/m81fe09h6nfi/public_html/admin/');
define('DIR_SYSTEM', '/home/m81fe09h6nfi/public_html/admin/system/');
define('DIR_IMAGE', '/home/m81fe09h6nfi/public_html/admin/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storagewatolbouvo0m/');
define('DIR_CATALOG', '/home/m81fe09h6nfi/public_html/admin/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

its look ok ??

New member

Posts

Joined
Wed Nov 23, 2011 1:59 am

Post by tdaubs » Fri Apr 28, 2023 2:12 am

Which specific version of OC are you using? 3.0.3.8 or something else?

If version 3, did you change the name of the admin dir to something else? Those changes need to be reflected in the config.php.

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by smokelight » Fri Apr 28, 2023 2:31 am

Index.php show this:

<?php
// Version
define('VERSION', '3.0.3.6');

// Configuration
if (is_file('config.php')) {
require_once('config.php');
}

// Install
if (!defined('DIR_APPLICATION')) {
header('Location: install/index.php');
exit;
}

// Startup
require_once(DIR_SYSTEM . 'startup.php');

start('catalog');

so its 3.0.3.6 right ?

New member

Posts

Joined
Wed Nov 23, 2011 1:59 am

Post by paulfeakins » Fri Apr 28, 2023 6:56 pm

No such file or directory:
/home/m81fe09h6nfi/public_html/admin/system/startup.php

Does it exist?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by JNeuhoff » Fri Apr 28, 2023 7:59 pm

smokelight wrote:
Fri Apr 28, 2023 1:20 am
FIRST THANK YOU VERY MUCH FOR YOUR HELP !

i did it when i go to the link :
http://mywebsite.com/admin/path.php

this is what i got : /home/m81fe09h6nfi/public_html/admin

and this is copy of my admin/config :

<?php
// HTTP
define('HTTP_SERVER', 'http://mywebsite.com/admin/');
define('HTTP_CATALOG', 'http://mywebsite.com/');
// HTTPS
define('HTTPS_SERVER', 'http://mywebsite.com/admin/');
define('HTTPS_CATALOG', 'http://mywebsite.com/');
// DIR
define('DIR_APPLICATION', '/home/m81fe09h6nfi/public_html/admin/');
define('DIR_SYSTEM', '/home/m81fe09h6nfi/public_html/admin/system/');
define('DIR_IMAGE', '/home/m81fe09h6nfi/public_html/admin/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storagewatolbouvo0m/');
define('DIR_CATALOG', '/home/m81fe09h6nfi/public_html/admin/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

its look ok ??
No, it doesn't look OK! It should be more like this:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'https://mywebsite.com/admin/');
define('HTTP_CATALOG', 'https://mywebsite.com/');

// HTTPS
define('HTTPS_SERVER', 'https://mywebsite.com/admin/');
define('HTTPS_CATALOG', 'https://mywebsite.com/');

// DIR
define('DIR_APPLICATION', '/home/m81fe09h6nfi/public_html/admin/');
define('DIR_SYSTEM', '/home/m81fe09h6nfi/public_html/system/');
define('DIR_IMAGE', '/home/m81fe09h6nfi/public_html/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_CATALOG', '/home/m81fe09h6nfi/public_html/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
.....
?>

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by tdaubs » Fri Apr 28, 2023 10:19 pm

As pointed out, this looks odd...

define('DIR_STORAGE', DIR_SYSTEM . 'storagewatolbouvo0m/');

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by smokelight » Sat Apr 29, 2023 12:31 am

thanks for every one ! but nothing work :(

New member

Posts

Joined
Wed Nov 23, 2011 1:59 am

Post by sw!tch » Sat Apr 29, 2023 10:20 am

smokelight wrote:
Sat Apr 29, 2023 12:31 am
thanks for every one ! but nothing work :(
What does your updated config.php look like? Make sure you REMOVE your database and other sensitive info when posting.

-

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by SohBH » Sat Apr 29, 2023 3:11 pm

/home/m81fe09h6nfi/public_html/admin/index.php
Check your admin folder
index.php is missing or wrong directory path

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by paulfeakins » Tue May 02, 2023 5:59 pm

smokelight wrote:
Sat Apr 29, 2023 12:31 am
thanks for every one ! but nothing work :(
Well what exactly did you try?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Bing [Bot] and 26 guests