Post by modiz » Wed Dec 09, 2015 12:17 am

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

contemporary design and decoration http://ofmodern.com/


Newbie

Posts

Joined
Sun Apr 13, 2014 4:34 pm


Post by IP_CAM » Wed Dec 09, 2015 1:24 am

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/
Last edited by IP_CAM on Wed Dec 09, 2015 4:30 am, edited 5 times in total.

My Github OC Site: https://github.com/IP-CAM
5'200 + 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 modiz » Wed Dec 09, 2015 1:34 am

thanks for the reply, I will try what I understood,and I will write what happened

contemporary design and decoration http://ofmodern.com/


Newbie

Posts

Joined
Sun Apr 13, 2014 4:34 pm


Post by modiz » Wed Dec 09, 2015 3:20 am

perfect, only changed with Russ one and done,working like a charm ,you are perfect,Thank you very much

contemporary design and decoration http://ofmodern.com/


Newbie

Posts

Joined
Sun Apr 13, 2014 4:34 pm


Post by IP_CAM » Wed Dec 09, 2015 3:55 am

...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

My Github OC Site: https://github.com/IP-CAM
5'200 + 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 ranu70 » Thu Jan 07, 2016 2:44 am

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

Attachments

Screenshot_1.png

Screenshot_1.png (66.35 KiB) Viewed 15562 times


New member

Posts

Joined
Tue Apr 01, 2014 12:31 pm

Post by IP_CAM » Thu Jan 07, 2016 7:49 am

Check the image, and show us your settings!
Possibly rename mmysqli.php to mysqli.php as well, to try it out.
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + 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 ranu70 » Fri Jan 08, 2016 3:09 am

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..

Attachments

Screenshot_3 copy.jpg

Screenshot_3 copy.jpg (106.77 KiB) Viewed 15526 times


New member

Posts

Joined
Tue Apr 01, 2014 12:31 pm

Post by IP_CAM » Fri Jan 08, 2016 9:16 am

As I mentioned above, no usable info, no way to assist.
Sorry!
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + 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 ranu70 » Thu Jan 14, 2016 1:39 pm

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

New member

Posts

Joined
Tue Apr 01, 2014 12:31 pm

Post by lowlands » Fri Jan 15, 2016 11:02 pm

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

My OC-shop: http://www.Soldeerpunt.nl


User avatar
Active Member

Posts

Joined
Sun Dec 20, 2009 8:49 am
Who is online

Users browsing this forum: No registered users and 31 guests