Error while moving Joomla from localhost to my website

Joomla versions 2.5, 1.7 and 1.6 are all end-of-life since December 31st 2014 and are no longer supported. Please use Joomla 3.x instead.

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.
Locked
ali_m
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Dec 26, 2016 1:27 am

Error while moving Joomla from localhost to my website

Post by ali_m » Mon Dec 26, 2016 1:34 am

Hello everyone....
I have Joomla installed on WAMP server, after configuring modules and plugins ....
I tried to move it to my website, I used the "Plesk file manager" to upload script
and then I successfully exported and imported database to remote host.
Beside database configuration, I reconfigured the `configuration.php` file as the following:

Code: Select all

    public $log_path = 'D:\\Inetpub\\vhosts\\site.com\\httpdocs\\site\\Joomla/logs';
    public $tmp_path = 'D:\\Inetpub\\vhosts\\site.com\\httpdocs\\site\\Joomla/tmp';
but I got the following Error while browsing my joomla index page:

Code: Select all

    Warning: require_once(__DIR__/cache.php) [function.require-once]: failed to open stream: No error in D:\Inetpub\vhosts\site.com\httpdocs\site\Joomla\plugins\system\nnframework\helpers\protect.php on line 16
    
    Fatal error: require_once() [function.require]: Failed opening required '__DIR__/cache.php' (include_path='.;./includes;./pear') in D:\Inetpub\vhosts\site.com\httpdocs\site\Joomla\plugins\system\nnframework\helpers\protect.php on line 16
So how to repair this error?

User avatar
H13
Joomla! Ace
Joomla! Ace
Posts: 1545
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: Error while moving Joomla from localhost to my website

Post by H13 » Mon Dec 26, 2016 12:47 pm

Hi, I think, you need to contact the developer of the "nnframework" plugin, maybe it somehow stores paths and they are now broken,maybe it has some settings where you can change it :idea:

Jan
- Phoca Cart - Joomla eCommerce App - https://www.phoca.cz/phocacart
- Phoca Gallery - powerful image gallery
- Phoca Restaurant Menu - https://www.phoca.cz/phocamenu
- Phoca Download - download manager for Joomla

ali_m
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Dec 26, 2016 1:27 am

Re: Error while moving Joomla from localhost to my website

Post by ali_m » Mon Dec 26, 2016 9:12 pm

Thanks H13
I'v solved it..
seems like php version doesn't support __DIR__ function so I just replaced it with absolute directory location and that works fine

User avatar
H13
Joomla! Ace
Joomla! Ace
Posts: 1545
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: Error while moving Joomla from localhost to my website

Post by H13 » Tue Dec 27, 2016 1:36 pm

Ok
- Phoca Cart - Joomla eCommerce App - https://www.phoca.cz/phocacart
- Phoca Gallery - powerful image gallery
- Phoca Restaurant Menu - https://www.phoca.cz/phocamenu
- Phoca Download - download manager for Joomla


Locked

Return to “Installation Joomla! 2.5”