Post by somnik » Wed Sep 03, 2014 3:09 pm

Hello, i lost my website due to a hosting account cancelation. now i bought the housting again
and i would like to keep my website the same way it was. sadly the back up i have is
a bit old , but i'm pretty sure it's a working back up.
i uploaded all the files via filezilla , and when i go to my site which is www.armandobarillas.com
i get these messages

Warning: require_once(/home/content/26/11594526/html/system/startup.php):
failed to open stream: No such file or directory in /home/somnik/public_html/index.php on line 21

Fatal error: require_once(): Failed opening required '/home/content/26/11594526/html/system/startup.php'
(include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/somnik/public_html/index.php on line 21

thank you for reading, any help will be much appreciated !!

User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am

Post by Cue4cheap » Fri Sep 05, 2014 5:00 am

Check the config files and change the path to what your new host would require. A quick and dirty way is to log into your account with FTP and and see what the path is for your host and where the store is located.

i.e. /home/yourdirectoryname/public_html/catalog/

And ensure this is what is in your config files.

Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by somnik » Sat Sep 20, 2014 10:00 am

Hello Mike! , thank you very much for responding and helping , i am very new to this so i'm not understanding everything here. but this is what my config.php looks like (the one on the root)

define('DIR_APPLICATION', '/home/content/98/12954798/html/catalog/');
define('DIR_SYSTEM', '/home/content/98/12954798/html/system/');
define('DIR_DATABASE', '/home/content/98/12954798/html/system/database/');
define('DIR_LANGUAGE', '/home/content/98/12954798/html/catalog/language/');
define('DIR_TEMPLATE', '/home/content/98/12954798/html/catalog/view/theme/');
define('DIR_CONFIG', '/home/content/98/12954798/html/system/config/');
define('DIR_IMAGE', '/home/content/98/12954798/html/image/');
define('DIR_CACHE', '/home/content/98/12954798/html/system/cache/');
define('DIR_DOWNLOAD', '/home/content/98/12954798/html/download/');
define('DIR_LOGS', '/home/content/98/12954798/html/system/logs/');

i know i have to change something on config.php but i don't know what.
and maybe on admin/config.php too

remember i'm new!

User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am

Post by JAY6390 » Sat Sep 20, 2014 10:07 am

Replace all occurrences of

Code: Select all

/home/content/98/12954798/html/
with

Code: Select all

/home/somnik/public_html/
and save. Ensure you do this both for your /config.php and /admin/config.php

Image


User avatar
Guru Member

Posts

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

Post by somnik » Sat Sep 20, 2014 11:43 am

Hello JAY6390! , see... i forgot to mention that this warning/error is old, since the site was already restored with the database


(old) Warning: require_once(/home/content/26/11594526/html/system/startup.php):
failed to open stream: No such file or directory in /home/somnik/public_html/index.php on line 21

Fatal error: require_once(): Failed opening required '/home/content/26/11594526/html/system/startup.php'
(include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/somnik/public_html/index.php on line 21

the new warning is

(new) Warning: require_once(/home/content/26/11594526/html/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/98/12954798/html/admin/index.php on line 21

Fatal error: require_once() [function.require]: Failed opening required '/home/content/26/11594526/html/system/startup.php' (include_path='.:/usr/local/php5_3/lib/php') in /home/content/98/12954798/html/admin/index.php on line 21

User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am

Post by JAY6390 » Sat Sep 20, 2014 6:09 pm

OK, well change

Code: Select all

/home/content/26/11594526/html/
to

Code: Select all

/home/content/98/12954798/html/

Image


User avatar
Guru Member

Posts

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

Post by somnik » Wed Sep 24, 2014 7:34 am

Ah! thank you very much JAY6390! i can see the admin panel now! but i see a bunch of new warnings too!
kind of crazy , i'm thinking now this has to be a problem with the database? x_x


Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'abarillas.db.11594526.hostedresource.com' (0) in /home/content/98/12954798/html/system/database/mysql.php on line 6

Notice: Error: Could not make a database link using abarillas@abarillas.db.11594526.hostedresource.com in /home/content/98/12954798/html/system/database/mysql.php on line 7

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/content/98/12954798/html/system/database/mysql.php on line 10

Notice: Error: Could not connect to database abarillas in /home/content/98/12954798/html/system/database/mysql.php on line 11

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/content/98/12954798/html/system/database/mysql.php on line 14

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/content/98/12954798/html/system/database/mysql.php on line 15

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/content/98/12954798/html/system/database/mysql.php on line 16

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/content/98/12954798/html/system/database/mysql.php on line 17

Notice: Trying to get property of non-object in /home/content/98/12954798/html/admin/index.php on line 47

Warning: Invalid argument supplied for foreach() in /home/content/98/12954798/html/admin/index.php on line 47

User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am

Post by JAY6390 » Wed Sep 24, 2014 7:36 am

Contact your host, your database details are incorrect

Image


User avatar
Guru Member

Posts

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

Post by somnik » Wed Sep 24, 2014 7:50 am

Ok i will do that , thank you very much!

User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am

Post by somnik » Thu Sep 25, 2014 10:05 am

So i called my hosting provider and they told me that they don't give that type of support,
and that i have to go to phpmyadmin and edit the database , i logged into phpmyadmin but i don't understand
anything.

User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am

Post by JAY6390 » Thu Sep 25, 2014 10:17 am

Then at this point you need to look into hiring a developer to get this fixed as this is going beyond simple help for OpenCart and isn't in fact anything to do with OpenCart

Image


User avatar
Guru Member

Posts

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

Post by somnik » Thu Sep 25, 2014 10:35 am

I see, yeah i understand this is not an easy thing to fix. I do have a back up of the original database, which was given to me
by the godaddy people who restored the site. would it be possible to leave it back the way it was using this database file?

User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am

Post by somnik » Thu Sep 25, 2014 12:22 pm

One more post , i managed to minimize the problem to this

Fatal error: Call to a member function isLogged() on a non-object in /home/content/98/12954798/html/catalog/model/catalog/product.php on line 65

this is the only message i get on the site now, would you mind helping me out on this one also? thank you very much!

User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am
Who is online

Users browsing this forum: Bing [Bot] and 36 guests