Post by derek1962 » Tue Dec 30, 2014 7:13 am

Hi, I have in the past had no problem updating opencart however when i tried to update to version 2.0.1.1 its completely messed up my website i tried to reinstall the earlier version but with no joy.
If you visit my homepage you will see what it has done

www.petsplaytime.me.uk

www.petsplaytime.co.uk

www.petsplaytime.net

Also i have the same problem trying to login to admin panel all i get is this

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57
OpenCart


Please enter your login details.

Username

Password

Forgotten Password
Login

Hope anyone can help me please
Thank you
Derek

New member

Posts

Joined
Sat May 26, 2012 6:37 pm

Post by pprmkr » Tue Dec 30, 2014 6:42 pm

Edit both /config.php and admin/config.php and add missing constants .

config.php:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://YOUR_URL/');

// HTTPS
define('HTTPS_SERVER', 'http://YOUR_URL/');

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

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', '****');
define('DB_USERNAME', '****');
define('DB_PASSWORD', '****');
define('DB_DATABASE', '****');
define('DB_PREFIX', 'oc_');
admin/config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://YOUR_URL/admin/');
define('HTTP_CATALOG', 'http://YOUR_URL/');

// HTTPS
define('HTTPS_SERVER', 'http://YOUR_URL/admin/');
define('HTTPS_CATALOG', 'http://YOUR_URL/');

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

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', '****');
define('DB_USERNAME', '****');
define('DB_PASSWORD', '****');
define('DB_DATABASE', '****');
define('DB_PREFIX', 'oc_');

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by i2Paq » Tue Dec 30, 2014 10:16 pm

Ther is NO working upgradescript to go to 2.x!!

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by derek1962 » Wed Dec 31, 2014 3:14 am

Hello thank you but when i checked config and admin config files they were already filled in with the missing constants as i did remember to delete both of these files before upload and update, so i assume its something else if anyone has anymore ideas.
Thanks

New member

Posts

Joined
Sat May 26, 2012 6:37 pm

Post by derek1962 » Wed Dec 31, 2014 3:36 am

Also i can't login to admin panel this is all i get

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 53Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/startup.php on line 57Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/petsplaytime.me.uk/httpdocs/admin/index.php:80) in /var/www/vhosts/petsplaytime.me.uk/httpdocs/system/library/response.php on line 12

New member

Posts

Joined
Sat May 26, 2012 6:37 pm

Post by pprmkr » Wed Dec 31, 2014 3:44 am

You cannot upgrade with install script when config.php is deleted or empty.
In that case it will perform fresh install.

Only when config.php has constants declared an upgrade can be done and new constants are not written to the existing config.php.

Besides that: Use of undefined constant DIR_MODIFICATION says all !

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by derek1962 » Wed Dec 31, 2014 4:22 am

Hi so in real terms you are saying that it can't be repaired and the whole site are ruined yes ?
Thanks
Derek

New member

Posts

Joined
Sat May 26, 2012 6:37 pm

Post by derek1962 » Wed Dec 31, 2014 5:04 am

Hello again, I have installed the earlier version of opencart, My sites are sort of back but can't add items to the shopping cart from the homepage and only sometimes from the product page and also the main problem is i can't log in to admin panel when i type in myaddress/admin i just get a 404 not found and goes to myaddress/install/index.php

New member

Posts

Joined
Sat May 26, 2012 6:37 pm
Who is online

Users browsing this forum: No registered users and 22 guests