News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Error about max_execution_time

Started by cppl, August 01, 2012, 05:57:29 AM

Previous topic - Next topic

cppl

Hi Folks,
a client has just reported a strange error that has been appearing since updating to 2.0.8e (although that may be unrelated).

When clicking "Save" or "Save & Close" in the "Configuration" screen they get the following message repeated down the screen seven times:

Info: alterColumns alterKey not finished, please rise execution time and update tables again
Info: compareUpdateTable alterKey not finished, please rise execution time and update tables again
Info: alterColumns alterKey not finished, please rise execution time and update tables again
Info: compareUpdateTable alterKey not finished, please rise execution time and update tables again
Info: alterColumns alterKey not finished, please rise execution time and update tables again
Info: compareUpdateTable alterKey not finished, please rise execution time and update tables again
Info: alterColumns alterKey not finished, please rise execution time and update tables again
Info: compareUpdateTable alterKey not finished, please rise execution time and update tables again
Info: alterColumns alterKey not finished, please rise execution time and update tables again
Info: compareUpdateTable alterKey not finished, please rise execution time and update tables again
Info: alterColumns alterKey not finished, please rise execution time and update tables again
Info: compareUpdateTable alterKey not finished, please rise execution time and update tables again
Info: alterColumns alterKey not finished, please rise execution time and update tables again
Info: compareUpdateTable alterKey not finished, please rise execution time and update tables again


I've taken a copy of the site with Akeeba and set it up on our dev server the problem still appears. Can anyone provide some background as to what could be causing this?  I'll try and track it down in Eclipse but that will have to wait until we get some other jobs out of the way.

[EDIT]
I forgot to mention the response is immediately presented the timeout doesn't actually appear to be the cause. The live server has a max_execution_time value of 30 while the dev server has a value of 60 and in both you get the error messages immediately you click the button.

Cheers

Craig
Craig Phillips
craig@craigphillips.biz

Syd:     +61-2-8090-5408
Bris:     +61-7-3056-1992

jjk

Did you try to update the tables by clicking on 'Tools' - 'Tools & Migration' - 'Install Tables or if necessary update them' already?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

alwarren

For those of you working on a Windows development environment, using ini_get/set with max_execution_time doesn't work on Windows. On my development server, I had to hard code $this->maxScriptTime at line 46 of helpers/tableupdater.php. After that, table updates worked.

Change:
$this->maxScriptTime = ini_get('max_execution_time')*0.90-1;

To:
$this->maxScriptTime = 300*0.90-1;


Milbo

Hello Alwarren,

I am developing on a windows machine and for me it works there. I think it is maybe some server directive.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rvillela

I have been frustrated with the same issue on a Windows environment, but the suggested change that alwarren suggested worked for me as well. The result timeout I get when debugging is "-1" rather than the 300-5%.

Unfortunately, when you do an upgrade, it changes the file before the DB updates and then fails again. I had to go into the zip file and update the TableUpdater.php file BEFORE the upgrade. Is does appear that the ini_get/set are not working properly.

Thanks alwarren.

benchmark

Error:
alterColumns alterKey not finished, please rise execution time and update tables again
compareUpdateTable alterKey not finished, please rise execution time and update tables again

As soon as I changed my "Virtuemart-2-Joomla-3-Bootstrap/administrator/components/com_virtuemart/helpers/tableupdater.php" code to this one I was able to start saving my configuration and my tables updated perfectly and I did not get any more errors.


Milbo

You should not use this code. It is 5 years old!
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

itftaiwan

Hello,
I have this problem with our new site. I am not able to upload the product picture as as I am getting this error
Then I followed this post and went to "install or update" option inside the configuration/tools, but i still get this error

alterColumns alterKey not finished, please rise execution time and update tables again

in my php.ini i set up a max execution time of 300 seconds but still the problem persist.

Please any idea how to fix this?

Thank you!

jjk

@itftaiwan:
Which versions of Joomla and VM do you use?
Are you trying to upload an image with several megabytes in size?
Which method do you use to upload the image?
Do you have 'automatically create thumbnails' enabled in VM configuration?
Do the 300 seconds show up in your Joomla > System information > PHP Settings?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

itftaiwan

Thank you for your reply..
I am using Joomla 3.6.2 and VM 3.0.14
no the images are only 200k. It is a new site, i have created all the products and descriptions but i cannot upload the "icon" image of the product.
What i do is: Products/Product images/ then under i got the upload file:"please choose fie"
When i upload the file from here i get this error:

An error has occurred
1054 Unknown column 'file_class' in 'field list' SQL=INSERT INTO `#__virtuemart_medias` (`virtuemart_media_id`,`virtuemart_vendor_id`,`file_title`,`file_description`,`file_meta`,`file_class`,`file_mimetype`,`file_type`,`file_url`,`file_url_thumb`,`published`,`file_is_downloadable`,`file_is_forSale`,`file_is_product_image`,`shared`,`file_params`,`file_lang`,`created_on`,`created_by`,`modified_on`,`modified_by`) VALUES ('0','1','purple85.jpg','','','','image/jpeg','product','images/stories/virtuemart/product/purple85.jpg','','1','0','0','0','0','','','2016-09-12 03:10:32','139','2016-09-12 03:10:32','139')

I have asked my hosting to change the php.ini to 300 seconds, i checked and it was changed.

I have already disable "Enable Dynamic Thumbnail Resizing" but still does not work

Thanks a lot for your help!


GJC Web Design

has nothing to do with timeouts etc

this is the problem

Unknown column 'file_class' in table #__virtuemart_medias -- it should be there -- try the vm table updater in VM tools
Install or if necessary update tables
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

itftaiwan

 :-\ Yes, that is what i do.
When uploading I get this 1054 error. Then i read in this forums to go to tools and "install or update tables if necessary"

Then when doing so i get this error
alterColumns alterKey not finished, please rise execution time and update tables again

and that is why i was trying to fix the execution time :)

GJC Web Design

In that case if the server can't handle it I would just manually add the field by phpmyadmin
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jjk

...plus maybe also run 'Repair table' and 'optimize table' from phpmyadmin...
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

itftaiwan

I installed all the web in another hosting and i do not get that error anymore.
I do not understand why but the host cannot handle it