Jump to content

Able to see Backend but an error on the frontend. V1.4.3


Recommended Posts

So I got a problem with viewing my frontend. First off I have v1.4.3 installed on my local server and it has been working fine for about 5 months now but all of a sudden I cannot get to my frontend.The backend is working perfectly fine. i turned on the error display which shows:

 

Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\prestashop\classes\Validate.php on line 456

 

So I'm guessing something is wrong with line 456 in the Validate.php but I don't understand what it can be since I haven't changed any setting on the computer/server.

 

I've also increased the execution time to 300 seconds which didn't change the outcome of the error.

Link to comment
Share on other sites

Thanks for the reply. It's actually no hosted, we are running it on one of our own servers. So I increased the max_execution time on our php.ini file.

 

The weird thing is that the backend running fine, only the frontend is not showing up now. It was working fine for the past 5 months.

Link to comment
Share on other sites

Yes it happens to any page in the front end, I still get the "Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\prestashop\classes\Validate.php on line 456". And as far as I know, nobody has touched any of the files on this server. The only thing that I can think of is that the computer that was running the website crashed a few times and maybe that corrupted something on the computer?

 

It's confusing because I can update images and stuff on the backend but nothing works on the frontend.

Link to comment
Share on other sites

A computer crash would have nothing to do with this.

 

The code in line 456 does a regular expression check in a string to make sure it have plain html (and no Javascript events).

While regex (regular expressions) can take time to process, I cannot imagine why it would take so long on your site.

 

You could try to create a log and see what text is being sent to that function that would cause it to hang like that, it may give you a clue as to what is going on.

 

Add the following code on line #155 before $jsEvent... It will create a new text file called 1.txt and the last entry in the file would be the cause of the hangup.

 


$myFile = dirname(__FILE__)."/1.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, "Cleaning (".strlen($html)." Characters)\n$html\n--------------------------------------------------\n");
fclose($fh);

Link to comment
Share on other sites

So I entered the code that you provided and the 1.txt had this inside:

 

Cleaning (3817 Characters)

{"ADN":{"V":"13000","U":"http:\/\/www.presto-changeo.com\/en\/payment-modules\/28-authorizenet-payment.html","T":259200},"HSB":{"V":"11400","U":"http:\/\/www.presto-changeo.com\/en\/payment-modules\/43-hsbc-uk-payment.html","T":259200},"OCC":{"V":"12100","U":"http:\/\/www.presto-changeo.com\/en\/payment-modules\/65-offline-credit-card.html","T":259200},"FDA":{"V":"11100","U":"http:\/\/www.presto-changeo.com\/en\/payment-modules\/12-firstdata-payment.html","T":259200},"MGF":{"V":"12000","U":"http:\/\/www.presto-changeo.com\/en\/payment-modules\/53-mygate-my-virtual.html","T":259200},"UEP":{"V":"10100","U":"http:\/\/www.presto-changeo.com\/en\/payment-modules\/68-usaepay-payment.html","T":259200},"EWA":{"V":"14400","U":"http:\/\/www.presto-changeo.com\/en\/payment-modules\/13-eway-australia-payment.html","T":259200},"PLA":{"V":"11600","U":"http:\/\/www.presto-changeo.com\/en\/attribute-modules\/59-product-list-attributes.html","T":259200},"AOR":{"V":"14500","U":"http:\/\/www.presto-changeo.com\/en\/attribute-modules\/24-attribute-order.html","T":259200},"AGD":{"V":"14500","U":"http:\/\/www.presto-changeo.com\/en\/attribute-modules\/27-attribute-grid.html","T":259200},"AWD":{"V":"14000","U":"http:\/\/www.presto-changeo.com\/en\/attribute-modules\/23-attribute-wizard.html","T":259200},"AWP":{"V":"14500","U":"http:\/\/www.presto-changeo.com\/en\/attribute-modules\/34-attribute-wizard-pro.html","T":259200},"MCE":{"V":"10400","U":"http:\/\/www.presto-changeo.com\/en\/80-mass-combination-editor.html","T":259200},"AJF":{"V":"11400","U":"http:\/\/www.presto-changeo.com\/en\/filter-modules\/74-ajax-filter.html","T":259200},"BCU":{"V":"11000","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-modules\/63-barcode-upload.html","T":259200},"SNU":{"V":"12100","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-modules\/48-serial-number-upload.html","T":259200},"WTR":{"V":"16100","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-modules\/19-website-translator.html","T":259200},"PBK":{"V":"11000","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-modules\/37-automatic-prestashop-backup.html","T":259200},"DPP":{"V":"11000","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-modules\/69-batch-downloadable-product-pro.html","T":259200},"DUR":{"V":"13100","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-modules\/25-duplicate-url-redirect.html","T":259200},"PVT":{"V":"11800","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-modules\/30-private-shop.html","T":259200},"MAE":{"V":"10000","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-modules\/85-mass-accessories-editor.html","T":259200},"DBE":{"V":"12000","U":"http:\/\/www.presto-changeo.com\/en\/import-export-modules\/64-database-export.html","T":259200},"FBL":{"V":"13300","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-free-modules\/45-facebook-like-button.html","T":259200},"OIL":{"V":"12000","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-free-modules\/44-order-ip-log.html","T":259200},"CQD":{"V":"10200","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-free-modules\/81-category-quantity-discount.html","T":259200},"PAC":{"V":"13000","U":"http:\/\/www.presto-changeo.com\/en\/prestashop-free-modules\/33-product-accessories.html","T":259200},"TWF":{"V":"10000","U":"http:\/\/www.presto-changeo.com\/en\/social-media-modules\/79-twitter-feed.html","T":259200},"FBC":{"V":"11100","U":"http:\/\/www.presto-changeo.com\/en\/social-media-modules\/82-facebook-comments.html"},"UPS":{"V":"12200","U":"http:\/\/www.presto-changeo.com\/en\/shipping-modules\/50-ups.html","T":259200},"FDX":{"V":"12000","U":"http:\/\/www.presto-changeo.com\/en\/shipping-modules\/47-fedex.html","T":259200},"LSH":{"V":"10100","U":"http:\/\/www.presto-changeo.com\/en\/shipping-modules\/83-localized-shipping.html","T":259200[spam-filter]

--------------------------------------------------

 

And I have no idea what this means. Any Ideas?

Link to comment
Share on other sites

This is coming from our (Presto-Changeo) automatic module update, however, this should no have any affect on the site or this function.

 

Is this the only thing that was in the file, or is this just the last line?

 

Was anyone else using the site or browsing anything in it, if so, that would probably mess up the log.

Link to comment
Share on other sites

Okay, so I can't get to the module section to disable the module. Now that you mention modules, we did recently purchase the attribute grid module to see if that can work for us (within the last 2 weeks).

 

Is there anyway to remove it without going through the module section.

 

It looks like that can be the culprit.

 

***I get the same error in validate.php***

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...