Advertisement

Fatal error: require_once(): Failed opening required '/home/customer/www/mydomain.com/public_html/libraries/import.legac

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
aimlesslady
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 100
Joined: Tue Sep 25, 2007 11:50 am

Fatal error: require_once(): Failed opening required '/home/customer/www/mydomain.com/public_html/libraries/import.legac

Post by aimlesslady » Thu Mar 21, 2024 9:56 pm

I installed a backup (Akeeba) to a subdomain to check its integrity. I was able to log into the back end, but when I tried to see the front, I got this error:

Fatal error: require_once(): Failed opening required '/home/customer/www/mydomain.com/public_html/libraries/import.legacy.php' (include_path='.:/usr/local/php74/pear') in /home/customer/www/mydomain.com/public_html/includes/framework.php on line 17
Any insight what is causing this and how to fix it?
It is a Joomla 3 which we are migrating to Joomla 4 but I want to keep it in a subdomain until we are sure the migrated site is working properly.

Advertisement
User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17837
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Fatal error: require_once(): Failed opening required '/home/customer/www/mydomain.com/public_html/libraries/import.l

Post by toivo » Fri Mar 22, 2024 12:20 am

Joomla cannot find or is unable to access the file libraries/import.legacy.php. Use File Manager from the cPanel provided by your host and check if the file is there and that its permissions are 644.

If the file is missing, expand the installation package for the version of Joomla 3 this site is using and copy the file to the web server.
Toivo Talikka, Global Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44644
Joined: Sat Apr 05, 2008 9:58 pm

Re: Fatal error: require_once(): Failed opening required '/home/customer/www/mydomain.com/public_html/libraries/import.l

Post by Webdongle » Fri Mar 22, 2024 12:32 am

Might be easier to test it on wamp. The subdomain might have path issues.
Is the subdomain folder level with or nested under the domain folder? If the later that can cause a path issue.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

aimlesslady
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 100
Joined: Tue Sep 25, 2007 11:50 am

Re: Fatal error: require_once(): Failed opening required '/home/customer/www/mydomain.com/public_html/libraries/import.l

Post by aimlesslady » Fri Mar 22, 2024 12:45 pm

The import.legacy.php file is in the libraries folder and the permissions are 644.
The subdomain is outside the public_html folder and has its own public_html folder where the files are installed.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44644
Joined: Sat Apr 05, 2008 9:58 pm

Re: Fatal error: require_once(): Failed opening required '/home/customer/www/mydomain.com/public_html/libraries/import.l

Post by Webdongle » Fri Mar 22, 2024 4:02 pm

There is normally only one public_html folder which is the server root
Usually the format would be
public_html
>/folderthatthedomainpointsto
>>/administrator etc
>/folderthesubdomainpointsto

Having the subdomain pointing to a folder outside of public_html folder can cause path issues. Best test the backup (and do the update) on wamp localhost.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Advertisement

Post Reply

Return to “Administration Joomla! 3.x”