Performance issue with Prestashop - prestashop

When I click Modules in Admin Panel Back Office, it is taking arround 2mins to view the modules page. I want to know how to find where is the problem.
I have seen the below link for performance issue, but even after emptying the guest table it is taking same time(2mins).
https://www.prestashop.com/forums/topic/266421-500000-rows-on-ps-guest-sounds-too-big/
Kindly suggest to find the root cause of the problem.

Go to file defines.inc.php and value change:
define('_PS_MODE_DEV_', false);
for:
define('_PS_MODE_DEV_', true);
with this active developer mode and you see error in php and server...

define('_PS_DEBUG_PROFILING_', false);
This will show you all hooks and controller executions time with a lot of details, you could probably find where you have a bottleneck with only that.

Related

Blocklayered module not working prestashop 1.6

I have a bug on my prestashop website that i don't know how to fix.
My blocklayered module is not working... I've tried refreshing cache and indexes and also restored the module with original one but it's not working... I've also setted permissions to 777 for all the folders and files of the module...
Here is the error line:
v_24_2e5bc2f239b0cac64f2bff372a426d98.js:4 GET https://www.bobo-sport.fr/modules/blocklayered/blocklayered-ajax.php?layered_category_12=12&id_category_layered=13&_=1532013197475 500 ()
You can see the problem on this page for exemple: https://www.bobo-sport.fr/13-soins
Could you please have a look to my problem?
Thanks a lot for your help! :)
Seems like a silly resolution but we had the same issue.
screenshot of blank line
Found the fix by total fluke.
In blocklayered.php remove the blank line on the top of the file.
Some apache configs manage this others not. Sometimes there is a hidden ascii value in there that throws an error of headers already sent.
One of our clever engineers spotted this after hours of searching.
Nearly killed us.
Hope this helps.

Prestashop Voucher coupon block not showing

Although in my theme the coupon block had showed ok, now it isn't showing nothing. So the costumers can't use the voucher coupons. I add an screenshot to see what i mean. The green block i mean. Image here
Try executing the following line of code on your store.
Configuration::updateGlobalValue('PS_CART_RULE_FEATURE_ACTIVE', '1');
You need to add it to some PHP file (PrestaShop's file) and open a page that runs that PHP file, once it will be executed you should be able to see and use the voucher field on the Checkout page.
Though this is an old topic, I found this with the same problem. In our case this happened when installing / updating PayPal module. The solution is to unhook PayPal module from Header hook. I know it's not a "coding solution", bugt I hope it may help someone...
The solution is not mine, I found it here: https://www.prestaforum.com/threads/un-bug-muy-comentado-en-la-1-6-0-x-cupon-descuento-vs-paypal.357/.

Odoo 9 - cannot load custom module

I am brand new to odoo, just installed version 9 and made a module 'aidentest' using
.>>python odoo.py scaffold aidentest addons
That created the aidentest module in the addons folder. Uncommented everything in the autogenerated files
but when I went to check out my 'Hello World' page at
http://localhost:8069/aidentest/aidentest
I got a 404 not found
So I went to apps to try and load my module, but I could not find it.
Does anyone know what I need to do on Odoo 9 to load up and start coding my custom module?
Briefly: You have to activate developer mode by going to Top right menu>about>activate developer mode
I had basically given up, and was mindlessly clicking about when I hit the 'About' link on the generic-whiteguy dropdown. I had to actually stop thinking before I was able to locate the completely senseless place where they put the thing I need.
The About modal window popped up, and in it was an activate the developer mode button
Some things changed immediately, but I still couldn't find my custom module.
Then I walked away, came back and when I returned I had some auto-generated emails (new things had loaded - slowly). Did this mean that maybe my module had also become accessible? I checked, and sure enough, there it was.
ZERO DOCUMENTATION about this
Please check the config file.Then send the last error it has.

unable to execute pig script for Hue-2.5.0

I have installed Hue-2.5.0 in pseudo mode and also i am able to view the UI.
Beeswax(hive UI), sqoop, oozie editor everything are working efficiently but i dont know why my pig scripts are not working, UI is non resrponsiv & it is not showing any errors or exceptions.
i have checked logs also and found no issue
what could be the issue???
thanks in advance.
You should look at http://hue_host:8888/logs, or right click and 'inspect element' and look for error in the Chrome console. You can also share a screenshot of what happens when you clicked 'submit. Feel free to comment on the hue-user list too.

Opencart: Disabled product still shows in bestseller

Not really sure why this is, but when I disable a product in the admin, it is still showing in the bestseller module. It has been removed everywhere else. There is no product page, there is no listing in any category, and you can not search for it anymore.
Unfortunately the bestseller module isn't on board with the rest of the system. The image, title, and button are still all "active" for the disabled product. Clicking does bring you to a 404 page, but it is strange (And crazy annoying) that a disabled product is still used.
I can't figure the thing out, any ideas on this?
*And why is a bestseller disabled: Supplier stopped supplying them. working with v1.5.5.1 if it matters.
The most likely culprit is going to be a cache file that needs deleting. Open /system/cache/ and find a file starting product.bestseller and delete it. This should fix it. If this doesn't fix it, then it's going to be a modification causing this (vQmod most probably)