Post by jorem » Fri Sep 11, 2020 8:10 pm

Webhost moved the site to new server last week. Everything is fine except for this.

When trying to add or change any image e.g. in products by clicking the OC-logo, the popup with blue button (and a white pen) and the red button (with white trash can) shows up as usual. But when clicking any of the buttons, the popup just disappears and nothing else happens.

Edit: Suddenly and just now a new issue appeared. When clicking any of the buttons mentioned above, OC logs me out, shows the login page with error message, something like "Token-session invalid. Log in again" (it's in Swedish, so translation to English might not be correct). When doing as OC says and login in again, it repeats itself as soon as I click any of the buttons and I'm logged out and back at the login page again.

Any suggestion how to fix this?

Danne
----------------------------
https://proformica.com


Active Member

Posts

Joined
Thu Oct 07, 2010 9:42 pm

Post by ADD Creative » Fri Sep 11, 2020 9:23 pm

As your post suggest this has only started happening since a server move. Have you spoken to your host about it?

What version of PHP are you using? Has this changed with the server move?
Do you see any errors in the OpenCart or PHP error logs?
Do you see any messages in your web browser's developer console?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by jorem » Sat Sep 12, 2020 1:36 am

ADD Creative wrote:
Fri Sep 11, 2020 9:23 pm
As your post suggest this has only started happening since a server move. Have you spoken to your host about it?

What version of PHP are you using? Has this changed with the server move?
Do you see any errors in the OpenCart or PHP error logs?
Do you see any messages in your web browser's developer console?
Thanks a bunch for response!

1. No, I have not contacted the host yet. Hoping I might solve the problems before that.
2. Presently using PHP7.0. Have tested both previous and later versions, but when doing so, the login page won't even load.
3. Yes, there are several errors in the OC error log. Here's the most recent (pertinent details replaced with "xxxxx"):

[07-Sep-2020 18:10:53 UTC] PHP Fatal error: Uncaught Exception: Error: <br />Error No: in /home/xxxxx/public_html/system/library/db/mysqli.php:10
Stack trace:
#0 /home/xxxxx/public_html/system/library/db.php(31): DB\MySQLi->__construct('localhost', 'xxxxx_danne', 'password', 'xxxxx_shop', '3306')
#1 /home/xxxxx/public_html/system/framework.php(80): DB->__construct('mysqli', 'localhost', 'xxxxx_danne', 'password', 'xxxxx_shop', '3306')
#2 /home/xxxxx/public_html/vqmod/vqcache/vq2-system_startup.php(104): require_once('/home/xxxxx/...')
#3 /home/xxxxx/public_html/index.php(23): start('catalog')
#4 {main}
thrown in /home/xxxxx/public_html/system/library/db/mysqli.php on line 10
[07-Sep-2020 16:56:20 America/New_York] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 336
[07-Sep-2020 16:58:16 America/New_York] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 336
[11-Sep-2020 08:52:30 America/New_York] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 76 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 168
[11-Sep-2020 08:52:35 America/New_York] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 76 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 168
[11-Sep-2020 08:54:26 America/New_York] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16777224 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 341

4. Messages in web browser's developer console? No, using Firefox on Mac. While I have "Web developer" activated under "Tools", there's nothing there that might give a hint. At least not to me.

Best!
Dani

Danne
----------------------------
https://proformica.com


Active Member

Posts

Joined
Thu Oct 07, 2010 9:42 pm

Post by ADD Creative » Sat Sep 12, 2020 2:11 am

First thing to try is clearing your vQmod cache as this look to be causing some errors.
viewtopic.php?t=217993#p788054

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by jorem » Sat Sep 12, 2020 2:45 am

ADD Creative wrote:
Sat Sep 12, 2020 2:11 am
First thing to try is clearing your vQmod cache as this look to be causing some errors.
viewtopic.php?t=217993#p788054
Cleared the vQmod cache. Only difference is that I'm no longer logged out when clicking the buttons. But the popup with the buttons still disappears and nothing else happens.

Have contacted webhost who just now replied (translated by me from Swedish to English):

"The new server is using a newer version of MySQL and PHP. These are more compatible with with CPanel (which I use) and applications as e.g. Wordpress, Joomla, Drupal and others require that setup. Older php-scripts can't handle newer PHP or MySQL versions. If you make it work with PHP 7.0 it means that the scripts are from 2015 or older and not updated the past 5 years"

I'm flabbergasted.

Danne
----------------------------
https://proformica.com


Active Member

Posts

Joined
Thu Oct 07, 2010 9:42 pm

Post by chongshengdz » Sat Sep 12, 2020 4:27 am

jorem wrote:
Sat Sep 12, 2020 1:36 am
ADD Creative wrote:
Fri Sep 11, 2020 9:23 pm
As your post suggest this has only started happening since a server move. Have you spoken to your host about it?

What version of PHP are you using? Has this changed with the server move?
Do you see any errors in the OpenCart or PHP error logs?
Do you see any messages in your web browser's developer console?
Thanks a bunch for response!

1. No, I have not contacted the host yet. Hoping I might solve the problems before that.
2. Presently using PHP7.0. Have tested both previous and later versions, but when doing so, the login page won't even load.
3. Yes, there are several errors in the OC error log. Here's the most recent (pertinent details replaced with "xxxxx"):

[07-Sep-2020 18:10:53 UTC] PHP Fatal error: Uncaught Exception: Error: <br />Error No: in /home/xxxxx/public_html/system/library/db/mysqli.php:10
Stack trace:
#0 /home/xxxxx/public_html/system/library/db.php(31): DB\MySQLi->__construct('localhost', 'xxxxx_danne', 'password', 'xxxxx_shop', '3306')
#1 /home/xxxxx/public_html/system/framework.php(80): DB->__construct('mysqli', 'localhost', 'xxxxx_danne', 'password', 'xxxxx_shop', '3306')
#2 /home/xxxxx/public_html/vqmod/vqcache/vq2-system_startup.php(104): require_once('/home/xxxxx/...')
#3 /home/xxxxx/public_html/index.php(23): start('catalog')
#4 {main}
thrown in /home/xxxxx/public_html/system/library/db/mysqli.php on line 10
[07-Sep-2020 16:56:20 America/New_York] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 336
[07-Sep-2020 16:58:16 America/New_York] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 336
[11-Sep-2020 08:52:30 America/New_York] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 76 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 168
[11-Sep-2020 08:52:35 America/New_York] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 76 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 168
[11-Sep-2020 08:54:26 America/New_York] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16777224 bytes) in /home/xxxxx/public_html/vqmod/vqmod.php on line 341

4. Messages in web browser's developer console? No, using Firefox on Mac. While I have "Web developer" activated under "Tools", there's nothing there that might give a hint. At least not to me.

Best!
Dani
It means you are running out of memory.
you better use VPS instead of web host.

Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by jorem » Sat Sep 12, 2020 5:48 am

chongshengdz wrote:
Sat Sep 12, 2020 4:27 am
It means you are running out of memory.
you better use VPS instead of web host.
Sorry for being ignorant.
But what's the difference VPS and webhost? What does VPS even means? And how can I have a site running without having it located on a web host? (My apologies if I appear as completely daft. Been awake about 60 hours. Bear with me).

Danne
----------------------------
https://proformica.com


Active Member

Posts

Joined
Thu Oct 07, 2010 9:42 pm

Post by ADD Creative » Sat Sep 12, 2020 6:21 am

jorem wrote:
Sat Sep 12, 2020 2:45 am
ADD Creative wrote:
Sat Sep 12, 2020 2:11 am
First thing to try is clearing your vQmod cache as this look to be causing some errors.
viewtopic.php?t=217993#p788054
Cleared the vQmod cache. Only difference is that I'm no longer logged out when clicking the buttons. But the popup with the buttons still disappears and nothing else happens.

Have contacted webhost who just now replied (translated by me from Swedish to English):

"The new server is using a newer version of MySQL and PHP. These are more compatible with with CPanel (which I use) and applications as e.g. Wordpress, Joomla, Drupal and others require that setup. Older php-scripts can't handle newer PHP or MySQL versions. If you make it work with PHP 7.0 it means that the scripts are from 2015 or older and not updated the past 5 years"

I'm flabbergasted.
Now you don't get logged out check your error logs again (both the server PHP and OpenCart logs). Now also check in your web browser's development console
for any errors or warnings when chicking in the buttons. You could also check the network tab in the developer tool to see it anything is not loading or blocked (there should be an attempt to GET admin/index.php?route=common/filemanager).

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Mon Sep 14, 2020 5:51 pm

jorem wrote:
Sat Sep 12, 2020 2:45 am
I'm flabbergasted.
Why?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by jorem » Mon Sep 14, 2020 6:22 pm

Problem solved. Turns out that two plugins for php hadn't been activated on the new server.

Danne
----------------------------
https://proformica.com


Active Member

Posts

Joined
Thu Oct 07, 2010 9:42 pm
Who is online

Users browsing this forum: shanghua and 464 guests