Page 1 of 1

problem when changing hosting and domain

Posted: Wed Dec 09, 2015 12:17 am
by modiz
Hello group,
I changed my hosting and domain name of my site http://ofmodern.co.uk/ ,I did everything right but gives me the following error :
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /customers/9/4/0/ofmodern.co.uk/httpd.www/system/database/mysql.php:6 Stack trace: #0 /customers/9/4/0/ofmodern.co.uk/httpd.www/vqmod/vqcache/vq2-system_library_db.php(12): MySQL->__construct('ofmodern.co.uk....', 'ofmodern_co_uk', 'N5xkvCHR', 'ofmodern_co_uk') #1 /customers/9/4/0/ofmodern.co.uk/httpd.www/index.php(42): DB->__construct('mysql', 'ofmodern.co.uk....', 'ofmodern_co_uk', 'N5xkvCHR', 'ofmodern_co_uk') #2 {main} thrown in /customers/9/4/0/ofmodern.co.uk/httpd.www/system/database/mysql.php on line 6

you can see by clicking on the link.
if someone knows and can help where is the error and how to fix it.version is 1.54
thanks

Re: problem when changing hosting and domain

Posted: Wed Dec 09, 2015 1:24 am
by IP_CAM
It's not quite so easy to me , with your unfamiliar Version 1.5.4, you have to try, wich one of the Files, contained in the:
mysqli.zip
located here:
http://www.ipc.li/os/mysqli.zip
will function.
---
The mysql.php Error Message means, that you have a Driver set in your BOTH config.php files, not longer accepted by your new server, therefore mysqli is required, to make your DB work.

You therefore need to change your BOTH config.php content line to:

Code: Select all

define('DB_DRIVER', 'mysqli');
or then:

Code: Select all

define('DB_DRIVER', 'mmysqli');
and add one of the corresponding
mysqli.php
mmysqli.php
to the:
/shop/system/database/...
Subdirectory, and check, wich one will function.

FIRST, I would try the RUSSIAN Sub File,
mysql.php
wich seems to be a modified version of the default File.
This way, you won't have to modify the config.php files, to start with.

Then, I would try one of the: mmysqli.php files,
then the different: mysqli.php files. But always match your both
config.php CONTENT accordingly first, before testing.

You can easy ADD each one of the corresponding files (with different titles!) onto your server at once,
and since you cannot use your default mysql.php anyway, you can overwrite it with
the RUSSIAN one, to start with as well, and leave the CONFIG.PHP Setting, as it is, for the first test.

Sounds complicated ? It's not, I am just not an english born and speaking Man :laugh:

Ernie
hitline.info/shop/

Re: problem when changing hosting and domain

Posted: Wed Dec 09, 2015 1:34 am
by modiz
thanks for the reply, I will try what I understood,and I will write what happened

Re: problem when changing hosting and domain

Posted: Wed Dec 09, 2015 3:20 am
by modiz
perfect, only changed with Russ one and done,working like a charm ,you are perfect,Thank you very much

Re: problem when changing hosting and domain

Posted: Wed Dec 09, 2015 3:55 am
by IP_CAM
...rather plain luck, by listening to a blind duck... :D
but now, get the Atomix TURBO.PHP DB Engine Changer / Indexer, and make your DB FAST!
http://forum.opencart.com/viewtopic.php ... 37#p592237
Ernie

Re: problem when changing hosting and domain

Posted: Thu Jan 07, 2016 2:44 am
by ranu70
HI IP_CAM sir
i tried firstly with RUSS folder's file mysql.php file by doing this my admin panel seems blank nothing shows on that.
after this i tried with other files but from those files i am getting the Fetal Error . I am attaching the screenshot of that error. I am using opencart version 1.5.4
Sir Please help me in resolving this problem.
and reply as soon as possible

Re: problem when changing hosting and domain

Posted: Thu Jan 07, 2016 7:49 am
by IP_CAM
Check the image, and show us your settings!
Possibly rename mmysqli.php to mysqli.php as well, to try it out.
Ernie

Re: problem when changing hosting and domain

Posted: Fri Jan 08, 2016 3:09 am
by ranu70
Hi Sir,
I did the same one my one by renaming the file mmysqli to mysql and after doing this i am getting the error mentioned in screenshot and by changing this my front store becomes blank.

Sir Please help me
thanking you..

Re: problem when changing hosting and domain

Posted: Fri Jan 08, 2016 9:16 am
by IP_CAM
As I mentioned above, no usable info, no way to assist.
Sorry!
Ernie

Re: problem when changing hosting and domain

Posted: Thu Jan 14, 2016 1:39 pm
by ranu70
Hi ,
After upgrading my hosting server from shared to VPS Server, On my front end whenever i am trying to open the product it shows
The requested URL /index.php was not found on this server.

and on my admin panel i am getting the following error

warning cannot modify header information - headers already sent by (output started at /home/roboshop/public_html/admin/language/english/common/login.php:41) in /home/roboshop/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 55 warning cannot modify header information - headers already sent by (output started at /home/roboshop/public_html/admin/language/english/common/login.php:41) in /home/roboshop/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 57

Please help me
Thanks

Re: problem when changing hosting and domain

Posted: Fri Jan 15, 2016 11:02 pm
by lowlands
Hi Ernie,

I got here through your answer to my question in the Dutch forum http://forum.opencart.com/viewtopic.php?f=99&t=155904.

I tried all of the above but no joy. I keep getting the following message splattered all over my screen, which makes no sense to me (not being a coder).
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/hakko/soldeerpunt.nl/vqmod/vqmod.php on line 313
This seems to be the code it refers to, the first line being 313:

Code: Select all

		$modFilePath = preg_replace('/([^*]+)/e', 'preg_quote("$1", "~")', $modFilePath);
		$modFilePath = str_replace('*', '[^/]*', $modFilePath);
		$return = (bool) preg_match('~^' . $modFilePath . '$~', $checkFilePath);
		return $return;
Do you have a clue?

Thanks,
Theo