Jump to content

Some tabs were not loaded correctly ( Pop up )


Recommended Posts

Hi,

 

I have installed latest version and when try to create new product, i get a popup screen with following error.

 

Some tabs were not loaded correctly, do you want to reload them? Im then given option to click OK or cancel.

 

Its very annoying bug and sometimes shows blank page.

 

Any solution please/

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...

This problem is most likely caused by mod_evasive in Apache, or other security modules that prevent too many requests from being made to the server in a short interval of time.

 

The "Edit product" page tries to pre-load the tabs in the left (SEO, Prices, etc). Loading a tab is done by doing an ajax request to the server. That means that whenever you load this page, 10 or more requests are being made instantly to the server.

 

That's when mod_evasive kicks in, assuming that you're an attacker trying to bring the server down, and starts blocking all subsequent requests for a certain amount of time (a few seconds), enough to break the loading of the tabs.

 

Solutions:

 

1. Add your IP to the mod_evasive whitelisted IPs list (you do this in your webserver configuration file, httpd.conf for Apache. http://www.linuxlog.org/?p=135 )

 

2. If (and only if) you're on a test server, disable mod_evasive completely (do not do this on a production server, or you'll leave yourself vulnerable to DDOS attacks)

 

This is not much help for non-tech guys, but PrestaShop is indeed a bit difficult to understand. This is only one of the errors that just pop up out of nowhere.

 

Best of luck!

Edited by mateipavel (see edit history)
Link to comment
Share on other sites

Same problem!!! Please HELP !!!

 

hey, did you manage to get this issue resolved. I've got the same and its a major pain!

 

I am having the same issues.. disabling errors (which is off be default) doesn't help me.. please advise. urgent.I am not able to edit anything.

 

hi did you ever get this resolved, i'm having the same issue

Link to comment
Share on other sites

In my case I had prestashop version 1.5.0.17

 

replace in classes/Product.php

 

$lang = Db::getInstance()->executeS('SELECT pac.id_product_attribute, GROUP_CONCAT(agl.`name`, \''.pSQL($attribute_value_separator).'\',al.`name` ORDER BY agl.`id_attribute_group` SEPARATOR \''.pSQL($attribute_separator).'\') as attribute_designation
FROM `'._DB_PREFIX_.'product_attribute_combination` pac 
LEFT JOIN `'._DB_PREFIX_.'attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `'._DB_PREFIX_.'attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `'._DB_PREFIX_.'attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = '.(int)$id_lang.')
LEFT JOIN `'._DB_PREFIX_.'attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = '.(int)$id_lang.')
WHERE pac.id_product_attribute IN ('.implode(',', $product_attributes).')
GROUP BY pac.id_product_attribute');

with:

$where = '';
if(!empty($product_attributes)) {
$where = 'WHERE pac.id_product_attribute IN ('.implode(',', $product_attributes).')';
}
 $lang = Db::getInstance()->executeS('SELECT pac.id_product_attribute, GROUP_CONCAT(agl.`name`, \''.pSQL($attribute_value_separator).'\',al.`name` ORDER BY agl.`id_attribute_group` SEPARATOR \''.pSQL($attribute_separator).'\') as attribute_designation
FROM `'._DB_PREFIX_.'product_attribute_combination` pac
LEFT JOIN `'._DB_PREFIX_.'attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `'._DB_PREFIX_.'attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `'._DB_PREFIX_.'attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = '.(int)$id_lang.')
LEFT JOIN `'._DB_PREFIX_.'attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = '.(int)$id_lang.')
'.$where.'
GROUP BY pac.id_product_attribute');

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 3 weeks later...

I'm using Prestashop 1.5.2, when i active multi store i have this problem under Chrome & Mozilla.. I just keep clicking OK but the popoup deosnt disapear. I read somewhere that maybe it caused by the number of ajax request. Im using a mutual server so my host wouldnt change any configuration for me..

Link to comment
Share on other sites

  • 1 month later...

Hi guys I have same problem but I didn't get any solution I have checked it with above method that kaspi, radu and venture said. Kindly tell me some alternative method to solve this problem.

Thanks :)

Link to comment
Share on other sites

Hi guys I have same problem but I didn't get any solution I have checked it with above method that kaspi, radu and venture said. Kindly tell me some alternative method to solve this problem.

Thanks :)

Hello jhony, i had the same problem and it caused by my host server, they use a security_mod that block ajax request if it exceed a certain number. so, the tabs are loaded by ajax.. that thr reason for me, i changed the my host server because they didnt want to change that option for me ;)

 

Good luck,

Link to comment
Share on other sites

  • 1 month later...
Hello jhony, i had the same problem and it caused by my host server, they use a security_mod that block ajax request if it exceed a certain number. so, the tabs are loaded by ajax.. that thr reason for me, i changed the my host server because they didnt want to change that option for me ;) Good luck,

 

hi which host were you using previously?

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...

i found the problem on my local server with this error message.  I was playing with combinations and that brought on the bug.  WHen i enabled debugging the error went away and the pages loaded properly, this is because the error was shown, i went through all tabs and the combination tab had the error

 

Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'C:\xampp\htdocs\presta1608\admin123/themes/default\template\combinations.tpl'' in C:\xampp\htdocs\presta1608\tools\smarty\sysplugins\smarty_internal_templatebase.php on line 127

 

i remember starting to make a combination and backing out quickly an then this error ever since.

 

apparently i dont even have that file

Link to comment
Share on other sites

×
×
  • Create New...