Post by beny175 » Thu Apr 05, 2012 3:55 pm

Heyy,

Ok I installed the Image manager module correctly. Then when I opened the manager all of the buttons were inactive.
So I installed a older version of the mod, without deleting the existing one and I screwed the whole admin section of my site. So I thought I'd be smart and download opencart again and only copy over the admin folder over the broken one. I did and now it redirects me to the upgrade part. Then I tried going into the upgrade.php and changing it up so it didn't redirect me to the upgrade page because the upgrade page displayed this:

Code: Select all

Error: Could not load model upgrade! in D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart\system\engine\loader.php on line 37 
Now, the store is 100%perfect, the admin section is 0%
Please! how do I get the admin part of my site working again!? I really need this. I've been working so hard and I don't want to have to start over again putting in 5043 products manually.

Thanks,

Ben Latest Opencart version to date, website: http://ecotonerandink.com.au/opencart (temporary url haha)

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by Tcalp » Thu Apr 05, 2012 4:07 pm

You most likely wiped out your config.php file in the admin section which it needs to access the database and core files. If you have a back-up of your site from before (or ask your web host to restore a previous back-up) to get access to said config file.

Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

Image
irc.freenode.net #opencart


User avatar
Active Member

Posts

Joined
Wed Jul 06, 2011 1:49 pm

Post by beny175 » Thu Apr 05, 2012 4:31 pm

Well since I overwrote the admin folder it's all wiped out and I talked to my host and he has a backup from 2 weeks ago! :'(
any other suggestions?

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by Tcalp » Thu Apr 05, 2012 4:42 pm

Sure :)

~~ Side note ... I also own/run a printing company and have been working here and there to put together an e-commerce solution through Open Cart ... feel free to toss me a PM with your dev URL .. maybe I can save you some time or we can work together to build some great features ;) ..

but your config should look something like this :

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.yourdomain.com/admin/');
define('HTTP_CATALOG', 'http://www.yourdomain.com/');
define('HTTP_IMAGE', 'http://www.yourdomain.com/image/');

// HTTPS
define('HTTPS_SERVER', 'http://www.yourdomain.com/admin/');
define('HTTPS_IMAGE', 'http://www.yourdomain.com/image/');

// DIR
define('DIR_APPLICATION', '/home/username/public_html/admin/');
define('DIR_SYSTEM', '/home/username/public_html/system/');
define('DIR_DATABASE', '/home/username/public_html/system/database/');
define('DIR_LANGUAGE', '/home/username/public_html/admin/language/');
define('DIR_TEMPLATE', '/home/username/public_html/admin/view/template/');
define('DIR_CONFIG', '/home/username/public_html/system/config/');
define('DIR_IMAGE', '/home/username/public_html/image/');
define('DIR_CACHE', '/home/username/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/username/public_html/download/');
define('DIR_LOGS', '/home/username/public_html/system/logs/');
define('DIR_CATALOG', '/home/username/public_html/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'login');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'databasename');
define('DB_PREFIX', '');
?>
The config.php is in /admin/config.php ... there is another config file that you should be able to reference in the root of the opencart install which is /config.php just take note of the slight differences and apply changes where needed

Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

Image
irc.freenode.net #opencart


User avatar
Active Member

Posts

Joined
Wed Jul 06, 2011 1:49 pm

Post by beny175 » Thu Apr 05, 2012 7:41 pm

Thats great! Ive always wanted to make connections to create an overall better outcome.
But what do you mean by my dev url?

Thankyou for your help by the way, I'm going to try and get those config files going and I'll tell you if it worked or not haha.
Ps, do you have any recommendations for my logo? I just put it together randomly haha.

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by Tcalp » Thu Apr 05, 2012 8:26 pm

Dev url meaning the link to your open cart site (which I assume isn't live yet)

Logo looks fine to me

Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

Image
irc.freenode.net #opencart


User avatar
Active Member

Posts

Joined
Wed Jul 06, 2011 1:49 pm

Post by beny175 » Thu Apr 05, 2012 8:27 pm

OK, I did that and now when I go to the admin section I get
Fatal error: Call to a member function isLogged() on a non-object in D:\sites/(myusername)\ecotonerandink.com.au\home\OpenCart\catalog\view\theme\(mytheme)\template\module\login.tpl on line 1
Line 1 of that tpl file is:

Code: Select all

<?php if (!$this->customer->isLogged()) { ?>
How do I fix that? lol
my dev url is: http://ecotonerandink.com.au/opencart
admin is: .com.au/opencart/admin
Thank you so much for your time!

PS! all I did was copy the config.php from the root and pasted it into the admin folder, I think I'm meant to install it differently so is changes all the other files too?
Last edited by beny175 on Thu Apr 05, 2012 8:36 pm, edited 1 time in total.

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by Tcalp » Thu Apr 05, 2012 8:34 pm

I would think you didn't setup the config file properly

Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

Image
irc.freenode.net #opencart


User avatar
Active Member

Posts

Joined
Wed Jul 06, 2011 1:49 pm

Post by beny175 » Thu Apr 05, 2012 8:37 pm

all I did was copy the config.php from the root and pasted it into the admin folder, I think I'm meant to install it differently so is changes all the other files too? how would I do that?

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by Tcalp » Thu Apr 05, 2012 8:39 pm

Yes you need to make changes to the config file from one to the other (mainly paths) ... take what I gave you and compare it to your file .. make the appropriate changes

Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

Image
irc.freenode.net #opencart


User avatar
Active Member

Posts

Joined
Wed Jul 06, 2011 1:49 pm

Post by beny175 » Thu Apr 05, 2012 8:53 pm

This is what I changed my config.php in the admin folder too.
I thought I had finally done it but no, I get this:
Notice: Error: Could not load template D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/admin/view/theme/common/header.tpl! in D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart\system\engine\controller.php on line 71
This is really annoying sorry for taking your time, I REALLY do appreciate it! your making Planet Ink happen.

CONFIG.PHP

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://ecotonerandink.com.au/opencart/admin/');
define('HTTP_CATALOG', 'http://ecotonerandink.com.au/opencart/');
define('HTTP_IMAGE', 'http://ecotonerandink.com.au/opencart/admin/');

// HTTPS
define('HTTPS_SERVER', 'http://ecotonerandink.com.au/opencart/admin');
define('HTTPS_IMAGE', 'http://ecotonerandink.com.au/opencart/image/');

// DIR
define('DIR_APPLICATION', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/admin/');
define('DIR_SYSTEM', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/system/');
define('DIR_DATABASE', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/system/database/');
define('DIR_LANGUAGE', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/admin/language/');
define('DIR_TEMPLATE', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/admin/view/theme/');
define('DIR_CONFIG', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/system/config/');
define('DIR_IMAGE', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/image/');
define('DIR_CACHE', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/system/cache/');
define('DIR_DOWNLOAD', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/download/');
define('DIR_LOGS', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/system/logs/');
define('DIR_CATALOG', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'XXXXXXXXXXX');
define('DB_USERNAME', 'XXXXXXXXXXX');
define('DB_PASSWORD', 'XXXXXXXXX');
define('DB_DATABASE', 'XXXXXXXXXX');
define('DB_PREFIX', '');
?>
any ideas?????

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by Tcalp » Thu Apr 05, 2012 9:42 pm

define('DIR_TEMPLATE', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/admin/view/theme/');

should be

define('DIR_TEMPLATE', 'D:\sites\julieh5662\ecotonerandink.com.au\home\OpenCart/admin/view/template/');

Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

Image
irc.freenode.net #opencart


User avatar
Active Member

Posts

Joined
Wed Jul 06, 2011 1:49 pm

Post by beny175 » Thu Apr 05, 2012 9:58 pm

Thank you Sooooo much! it works!
What would I do without you!

lol, one question :/ All the images in the admin section look like this?
Screen Shot 2012-04-05 at 11.55.07 PM.png

Screen Shot 2012-04-05 at 11.55.07 PM.png (41.71 KiB) Viewed 3619 times

Screen Shot 2012-04-05 at 11.56.05 PM.png

Screen Shot 2012-04-05 at 11.56.05 PM.png (55.71 KiB) Viewed 3619 times

would you know why?

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by Tcalp » Thu Apr 05, 2012 10:05 pm

I would think your cache folder definition is wrong ...

Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

Image
irc.freenode.net #opencart


User avatar
Active Member

Posts

Joined
Wed Jul 06, 2011 1:49 pm

Post by beny175 » Thu Apr 05, 2012 10:19 pm

where abouts is the cache folder? and whats wrong with it?
lol sorry for throwing so many questions, i hope you don't mind..

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by Tcalp » Sun Apr 08, 2012 9:25 am

make sure you have a /system/cache folder

Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

Image
irc.freenode.net #opencart


User avatar
Active Member

Posts

Joined
Wed Jul 06, 2011 1:49 pm

Post by beny175 » Sun Apr 08, 2012 9:49 am

Yep, I do

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by beny175 » Sun Apr 08, 2012 10:26 am

Ru there? sorry, REALLY need to work lol

http://planetink.com.au
Image


User avatar
New member

Posts

Joined
Sun Mar 25, 2012 8:02 pm


Post by JAY6390 » Sun Apr 08, 2012 5:02 pm

Code: Select all

define('HTTP_IMAGE', 'http://ecotonerandink.com.au/opencart/admin/');
should be

Code: Select all

define('HTTP_IMAGE', 'http://ecotonerandink.com.au/opencart/image/');

ImageImageImage

SEO MEGA KIT PLUS - Get your site ranking higher in the search engines
Better Product SEO URL's - Perfectly structured product links
SEO URL's Route Editor PRO - Make ANY url on your site have clean keywords - even third party extensions (remove index.php)


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by JAY6390 » Sun Apr 08, 2012 5:03 pm

Also just edited out your database config details above. You really shouldn't post that info! :P

ImageImageImage

SEO MEGA KIT PLUS - Get your site ranking higher in the search engines
Better Product SEO URL's - Perfectly structured product links
SEO URL's Route Editor PRO - Make ANY url on your site have clean keywords - even third party extensions (remove index.php)


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 81 guests