Hi there,
I just bought this nice script but I have a strange issue, with browsers just displaying a blank page.
Setup:
Apache 2.4.10
PHP 5.6.20
All files 664, all folders 775. Apache/php both have access to group.
No errors in Apaches Logs.
Problem:
I tracked the issue down to the "Minify Code" settings. When disabled, everything is working just fine. But If I enable it, I get a blank page on Firefox & Chrome (fresh install). Both browsers receive HTML/JS code as expected but both show two errors that prevent a correct rendering :
These errors don't show when Minify option is disabled.
The first error come from here :
The second error come from 2 JS inclusion later :
Microsoft Edge reports similar errors in the Dev console, but seems to be able to bypass them and display the page.
Any guess?
I just bought this nice script but I have a strange issue, with browsers just displaying a blank page.
Setup:
Apache 2.4.10
PHP 5.6.20
All files 664, all folders 775. Apache/php both have access to group.
No errors in Apaches Logs.
Problem:
I tracked the issue down to the "Minify Code" settings. When disabled, everything is working just fine. But If I enable it, I get a blank page on Firefox & Chrome (fresh install). Both browsers receive HTML/JS code as expected but both show two errors that prevent a correct rendering :
Code:
(index):625 Uncaught TypeError: $.each is not a function(anonymous function)
(index):631 Uncaught ReferenceError: PF is not defined
These errors don't show when Minify option is disabled.
The first error come from here :
Code:
<script>(function($,d){$.each(readyQ,function(i,f){$(f)});$.each(bindReadyQ,function(i,f){$(d).bind("ready",f)})})(jQuery,document)</script>
The second error come from 2 JS inclusion later :
Code:
<script>
PF.obj.config.base_url = "http://myurl.com";
PF.obj.config.json_api = "http://myurl.com/json";
PF.obj.config.listing.items_per_page = "24";
....
Microsoft Edge reports similar errors in the Dev console, but seems to be able to bypass them and display the page.
Any guess?