Post by brichard » Thu May 25, 2017 1:31 pm

I have an issue, which is present only now on the server, on my localhost everything is fine.

the problem: When I am trying to open the page, I receive the following error:

Notice: Undefined index: EUR in /home/r49640lenj/public_html/system/library/cart/currency.php on line 25 and repeating it a lot of times and

I can't even access my admin page, after typing http://www.lenjerielady.ro/admin/ I receive the same error.

The problematic site: http://www.lenjerielady.ro

It is a fresh migration from localhost to server.

Any suggestion what could be the problem? It's very confusing.

Newbie

Posts

Joined
Wed May 24, 2017 2:22 pm

Post by IP_CAM » Fri May 26, 2017 2:39 am

well, it not only seems to be the EURO, I have never seen a similar Admin Login Page before... :crazy:
http://www.lenjerielady.ro/admin/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by brichard » Fri May 26, 2017 2:03 pm

IP_CAM wrote:
Fri May 26, 2017 2:39 am
well, it not only seems to be the EURO, I have never seen a similar Admin Login Page before... :crazy:
http://www.lenjerielady.ro/admin/
Me neither and what do you think what is wrong? Because on the localhost is everything ok!

Newbie

Posts

Joined
Wed May 24, 2017 2:22 pm

Post by victorj » Fri May 26, 2017 3:14 pm

Most likely your database import went wrong.
Just reimport your localhost database again.

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by brichard » Fri May 26, 2017 3:35 pm

victorj wrote:
Fri May 26, 2017 3:14 pm
Most likely your database import went wrong.
Just reimport your localhost database again.
You were completely right!

The problem with the main page is solved, but the admin page is still broken!

http://www.lenjerielady.ro/admin/

The config.php from the admin folder looks like this:

<?php
// HTTP
define('HTTP_SERVER', 'http://www.lenjerielady.ro/admin/');
define('HTTP_CATALOG', 'http://www.lenjerielady.ro/');

// HTTPS
define('HTTPS_SERVER', 'http://www.lenjerielady.ro/admin/');
define('HTTPS_CATALOG', 'http://www.lenjerielady.ro/');

// DIR
define('DIR_APPLICATION', '/home/r49640lenj/public_html/catalog/');
define('DIR_SYSTEM', '/home/r49640lenj/public_html/system/');
define('DIR_IMAGE', '/home/r49640lenj/public_html/image/');
define('DIR_LANGUAGE', '/home/r49640lenj/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home/r49640lenj/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/r49640lenj/public_html/system/config/');
define('DIR_CACHE', '/home/r49640lenj/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/r49640lenj/public_html/system/storage/download/');
define('DIR_LOGS', '/home/r49640lenj/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/home/r49640lenj/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/home/r49640lenj/public_html/system/storage/upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxx');
define('DB_PASSWORD', 'xxx');
define('DB_DATABASE', 'r49640le_opencart');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

Newbie

Posts

Joined
Wed May 24, 2017 2:22 pm

Post by victorj » Fri May 26, 2017 3:48 pm

In admin config files in section //dirs
Absolute Path to admin folder is not defined

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by brichard » Sat May 27, 2017 2:47 pm

victorj wrote:
Fri May 26, 2017 3:48 pm
In admin config files in section //dirs
Absolute Path to admin folder is not defined
I verified the dirs and corrected everything is the same like on the localhost and I am receiving a different error ??? when I am trying to access the admin page http://www.lenjerielady.ro/admin/

Notice: Error: Could not load template /home/r49640lenj/public_html/catalog/view/template/common/header.tpl! in /home/r49640lenj/public_html/system/storage/modification/system/library/template/php.php on line 23

<?php
// HTTP
define('HTTP_SERVER', 'http://www.lenjerielady.ro/admin/');
define('HTTP_CATALOG', 'http://www.lenjerielady.ro/');

// HTTPS
define('HTTPS_SERVER', 'http://www.lenjerielady.ro/admin/');
define('HTTPS_CATALOG', 'http://www.lenjerielady.ro/');

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

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxx');
define('DB_PASSWORD', 'xxx');
define('DB_DATABASE', 'r49640le_opencart');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

Newbie

Posts

Joined
Wed May 24, 2017 2:22 pm

Post by victorj » Sat May 27, 2017 2:59 pm

Still a error.
Change

Code: Select all

define('DIR_TEMPLATE' , '/home/r49640lenj/public_html/catalog/view/template/');
To

Code: Select all

define('DIR_TEMPLATE' , '/home/r49640lenj/public_html/admin/catalog/view/template/');

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by brichard » Sat May 27, 2017 3:15 pm

victorj wrote:
Sat May 27, 2017 2:59 pm
Still a error.
Change

Code: Select all

define('DIR_TEMPLATE' , '/home/r49640lenj/public_html/catalog/view/template/');
To

Code: Select all

define('DIR_TEMPLATE' , '/home/r49640lenj/public_html/admin/catalog/view/template/');
I verified the dir system and the correct line is:

Code: Select all

define('DIR_TEMPLATE' , '/home/r49640lenj/public_html/admin/view/template/');
[/quote]

Thanks to leading me to the solution, I appreciate it! Now is everything working fine. :joker:

Newbie

Posts

Joined
Wed May 24, 2017 2:22 pm
Who is online

Users browsing this forum: No registered users and 4 guests