Ajax loader problem

Phoca Cart - complex e-commerce extension
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 268
Joined: 07 Nov 2018, 14:55

Ajax loader problem

Post by Nidzo »

I have problem with Top ordering and Switch Layout Type buttons. When I try to change ordering or layout, ajax loader just keeps spinning and if I reload page it gives me desired value.
Chrome DevTools shows 500 (internal Server Error) in jquery.min.js:
Foto: https://ibb.co/d4r8OV
Video: https://www.dropbox.com/s/lbo5v1j77ah2n ... 7.wmv?dl=0

I tried all variations of Loading Bootstrap from Phoca Cart Options, disabling all third party plugins and modules, changing templates, tried on live site and result is same.

At the same time I test Phoca Cart on another localhost site and curious thing is that works perfectly.

Both sites are Joomla 3.9
PHP 7.2.4
Problematic site use Gantry 5 Helium Template
Second one is combination of Phoca Premium (Gantry 5) for Phoca Cart and RS Trone for rest of site (there is some conflict in Bootstrap versions with Phoca Cart)

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47885
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Ajax loader problem

Post by Jan »

Hi, 500 mostly means a PHP error, just click on the link in Developers Tools (Network) for getting more details (when you enable debug mode in Joomla! configuration and you will display PHP errors - in Joomla! Global Configuration and your server), you will get there more info about the problem.

Image

Just click on the link.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 268
Joined: 07 Nov 2018, 14:55

Re: Ajax loader problem

Post by Nidzo »

When Debug is turned on and when I click on link jquery.min.js it shows:

Code: Select all

xhr.send((options.hasContent && options.data) || null); 
(Failed to load resource: the server responded with a status of 500 (Internal Server Error))
https://ibb.co/cMGjxq

If I click on 1-rucni-radovi.html link in headers tab I get:
https://ibb.co/n2VNiV

Code: Select all

Request URL: http://banija:8383/shop/1-rucni-radovi.html
Request Method: POST
Status Code: 500 Internal Server Error
Remote Address: 127.0.0.1:8383
Referrer Policy: no-referrer-when-downgrade
HTTP/1.1 500 Internal Server Error
Date: Sun, 11 Nov 2018 21:06:21 GMT
Server: Apache/2.4.33 (Win64) PHP/7.2.4
X-Powered-By: PHP/7.2.4
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Cache-Control: no-cache
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
POST /shop/1-rucni-radovi.html HTTP/1.1
Host: banija:8383
Connection: keep-alive
Content-Length: 89
Accept: text/html, */*; q=0.01
Origin: http://banija:8383
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://banija:8383/shop/1-rucni-radovi.html
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
and in Preview tab:
https://ibb.co/kdydqA
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 268
Joined: 07 Nov 2018, 14:55

Re: Ajax loader problem

Post by Nidzo »

I found cause of problem. It was Phoca Site Plugin version 3.0.1. I updated to 3.0.2 and now it works.
Thank you Jan!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47885
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Ajax loader problem

Post by Jan »

Hi, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply