Forums / General Questions / I think I should think of giving up

I think I should think of giving up

Views: 1,123

Results 1 to 19 of 19
8 Oct 2015, 11:26 AM
#1
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

I think I should think of giving up

I have a whole host of problems and all I have done is a complete backup upload.> [07-Oct-2015 14:26:29 Europe/London] #1 mysqli_query() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php:43]

#2 queryFactory->query() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php:254]
#3 queryFactory->Execute() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/functions/functions_lookups.php:522]
#4 zen_get_info_page() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/template_default/templates/tpl_modules_upcoming_products.php:25]
#5 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/template_default/templates/tpl_modules_upcoming_products.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/modules/upcoming_products.php:62]
#6 include(/homepages/20/d503465712/htdocs/shops/ecs/includes/modules/upcoming_products.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/template_default/templates/tpl_index_categories.php:113]
#7 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/template_default/templates/tpl_index_categories.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/modules/pages/index/main_template_vars.php:219]
#8 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/modules/pages/index/main_template_vars.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/common/tpl_main_page.php:214]
#9 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/common/tpl_main_page.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/index.php:97]

[07-Oct-2015 14:26:29 Europe/London] PHP Warning: mysqli_query(): MySQL server has gone away in /homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php on line 43
[07-Oct-2015 14:26:29 Europe/London] #1 mysqli_query() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php:43]
#2 queryFactory->query() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php:254]
#3 queryFactory->Execute() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/functions/functions_lookups.php:522]
#4 zen_get_info_page() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/template_default/templates/tpl_modules_upcoming_products.php:25]
#5 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/template_default/templates/tpl_modules_upcoming_products.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/modules/upcoming_products.php:62]
#6 include(/homepages/20/d503465712/htdocs/shops/ecs/includes/modules/upcoming_products.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/template_default/templates/tpl_index_categories.php:113]
#7 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/template_default/templates/tpl_index_categories.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/modules/pages/index/main_template_vars.php:219]
#8 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/modules/pages/index/main_template_vars.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/common/tpl_main_page.php:214]
#9 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/common/tpl_main_page.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/index.php:97]

[07-Oct-2015 14:26:29 Europe/London] PHP Warning: mysqli_query(): Error reading result set's header in /homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php on line 43

Learning Fast.
Eden Craft Supplies

8 Oct 2015, 11:39 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: I think I should think of giving up

The log though appears to address the mysql server... Was that what received the backup or was the file server the recipient?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

8 Oct 2015, 11:57 AM
#3
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: I think I should think of giving up

Just the files. I have been having loads of problems. I think I will dump this shop and again, start from scratch. I think I am overloading the shop with too many plugin's and they are working against each other.

Learning Fast.
Eden Craft Supplies

8 Oct 2015, 1:16 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: I think I should think of giving up

adb34:

Just the files. I have been having loads of problems. I think I will dump this shop and again, start from scratch. I think I am overloading the shop with too many plugin's and they are working against each other.

Can't say that I see that as a possibility from the information provided above... While I am no judge of uk hosts, it may help others provide feedback if you identify with whom your store is hosted... Otherwise, yes shuld only install what is needed to operate the store and make profit, should also do some independent testing before modifying the live store, should install one plugin at a time to keep things sorted (or be willing to troubleshoot the myriad issues that might ensue), further, "wiping it all out" (which I think has been dscussed before) doesn't necessarily resolve or identify the central issue/cause and that should be identifiied first.

What was the reason for restoring the files this most recent time?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

8 Oct 2015, 1:55 PM
#5
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: I think I should think of giving up

I will trouble shoot with this store. Yes you are right to do testing on a back site but I do not have the space available to test, so I will use this one as my test bed. I have started another site which will only have plugin's installed that work with this site. So in a way, I have a live test shop

Learning Fast.
Eden Craft Supplies

8 Oct 2015, 2:30 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,111
Plugin Contributions:
56

Re: I think I should think of giving up

FWIW, I've seen a bunch of sites (ZC 1.5.3, ZC 1.5.4) that are periodically receiving the "MySQL server has gone away" message. I haven't been able (yet) to find a root cause.

8 Oct 2015, 6:00 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: I think I should think of giving up

@adb34, who's your hosting company? And PHP version?

lat9:

FWIW, I've seen a bunch of sites (ZC 1.5.3, ZC 1.5.4) that are periodically receiving the "MySQL server has gone away" message. I haven't been able (yet) to find a root cause.
Hmmm ... @lat9, any idea whether it's common to a particular hosting company? or PHP version?

The only time I've see this "MySQL server has gone away" recently is on shared hosts that are overloaded with too many sites on one server. Commonly found on GoDaddy and Dreamhost and the Hostgator/Bluehost(Endurance conglomerate). And in these cases it's a problem that can only be fixed by the hosting company.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Oct 2015, 6:33 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,111
Plugin Contributions:
56

Re: I think I should think of giving up

DrByte, I've seen it on 1&1 (shared server) and on a couple of other sites (one's a dedicated server on vps.net). I can't speak to the vps.net site, but my personal sites on 1&1 (which have gone from Zen Cart 1.3.8a->1.3.9->1.5.0->1.5.1->1.5.4) never received this error on their pre-v1.5.4 incantations (i.e. using mysql_* instead of mysqli_* functions).

8 Oct 2015, 7:58 PM
#9
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: I think I should think of giving up

I've occasionally seen this on one of my client's sites (maybe once every 3 - 6 months). 95% of the time it coincided with a MySQL (or complete) server restart. 4% of the time the host reported they suspended other accounts for abuse (or excessive resource use). The other 1% of the time the host has not provided an answer (and I could not duplicate the error on demand).

I also did not see this when using mysql_* on the same hosting provider. Perhaps mysqli_* is a little more aggressive with dead / idle link cleanup?

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

8 Oct 2015, 10:29 PM
#10
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: I think I should think of giving up

OK my host is 1 and 1

PHP = 5.5

Learning Fast.
Eden Craft Supplies

9 Oct 2015, 12:01 AM
#11
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: I think I should think of giving up

There may be a myriad of reasons why the error "mysql has gone away" appears. See https://dev.mysql.com/doc/refman/5.0/en/gone-away.html

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 Oct 2015, 9:52 AM
#12
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: I think I should think of giving up

The thing is I cannot get FEC to work in checkout as well. No matter what I do, it will not work. I have posted on that thread and all suggestions also do not work.

Learning Fast.
Eden Craft Supplies

9 Oct 2015, 12:49 PM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: I think I should think of giving up

The thing is I cannot get FEC to work
Really need to know all of the plugins you have loaded

Zen-Venom Get Bitten

9 Oct 2015, 12:52 PM
#14
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: I think I should think of giving up

kobra:

Really need to know all of the plugins you have loaded

I listed the plugin, on the FEC thread

Learning Fast.
Eden Craft Supplies

9 Oct 2015, 1:09 PM
#15
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: I think I should think of giving up

adb34:

The thing is I cannot get FEC to work in checkout as well. No matter what I do, it will not work. I have posted on that thread and all suggestions also do not work.

I took a lap through the discussion in the FEC forum and 1) would suggest continuing to troubleshoot FEC through that thread, 2) would suggest settingup a temp store, and install just FEC to verify functionality in your test environment, 3) would suggest that you slow down... There have been a few threads where you've had difficulty installing a plugin, to then state that it has been removed to find out that only this part or another was removed not the entire plugin. Now in FEC you've stated that you've removed all code from the orders.php file except the FEC part, well this could cause new errors to be generated. The more things are affected at once, the harder it is to figure out what the problem is. Effectively need to change one thing at a time. This is not to say that a single line in a file be changed, but complete an installation, complete a removal, etc... before testing the current status or checking functionality. Also while writing this I see kobra has posted about needing to know which plugins are installed. This is why when posting about an issue it is recommended to address the items in the posting tips.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

9 Oct 2015, 1:18 PM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: I think I should think of giving up

adb34:

I listed the plugin, on the FEC thread
I looked back to your post dtd 23 Aug 2015, 09:43 AM and forward from there and did not see where you listed ALL your plugins

Zen-Venom Get Bitten

9 Oct 2015, 4:43 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: I think I should think of giving up

lhungil:

Perhaps mysqli_* is a little more aggressive with dead / idle link cleanup?
It's very possible that hosts haven't tuned their defaults as well as they had with the older mysql stuff. Or the defaults are just stricter and need tweaking where tweaking wasn't needed before. The tweaks could be to both the php.ini (for PHP server side) and the my.cnf (for MySQL server side)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Oct 2015, 7:33 PM
#18
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Re: I think I should think of giving up

Any idea as to what those tweaks might be Dr Byte?

Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

9 Oct 2015, 8:07 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: I think I should think of giving up

adb34:

PHP Warning: mysqli_query(): MySQL server has gone away

DrByte:

It's very possible that hosts haven't tuned their defaults as well as they had with the older mysql stuff. Or the defaults are just stricter and need tweaking where tweaking wasn't needed before. The tweaks could be to both the php.ini (for PHP server side) and the my.cnf (for MySQL server side)

lloyd_borrett:

Any idea as to what those tweaks might be Dr Byte?
Googling for the error message "MySQL server has gone away" brings up tons of articles suggesting various server-side tweaks:
http://stackoverflow.com/questions/12425287/mysql-server-has-gone-away-when-importing-large-sql-file
https://dev.mysql.com/doc/refman/5.0/en/gone-away.html
and lots more

Another possibility is that in your Zen Cart site you might have added custom code to prematurely call application_bottom.php or otherwise close the session and/or database connection, in which case simply "not" doing that would be advisable.
And of course using old versions of any ZC code files copied into a newer-version site can cause undesired effects.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.