martinsuly
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Minify Fix] AJAX and JSON encoded contentI think that HTML Minify works correctly in some way. It doesn’t break JSON representation of data used within <script> tags.
json.pngA problem is with AJAX requests where you can expect another data types like XML or JSON, eg:
malformed_json.pngSo I can suggest you to add this:
if (isset($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && strtolower($_SERVER[‘HTTP_X_REQUESTED_WITH’]) === ‘xmlhttprequest’) return;above “ob_start(array($this, ‘modify_buffer’));” and the problem is solved.
EDIT: because you can’t rely on line breaks, eg. a JSON data structure can be destroyed with something else and HTML minify is for HTML documents
EDIT2: of course this won’t work in a JSONP situation, probably is better to check if it’s an HTML document, maybe via some occurrence of <html> tag
Forum: Plugins
In reply to: [WP Minify Fix] AJAX and JSON encoded contentSure, but they can count with that in a case of an HTML document (eg. javascript is wrapped into <script></script> tags), but your plugin tries to use minify on a pure JSON data content that doesn’t start like an HTML page. So there can be a catch. I think that’s also a problem of WP Minify Fix, because it breaks lots of another plugins and at least would be nice if you can do a temporary change.
Forum: Plugins
In reply to: [Barc Chat] Cannon activateHi, please try the activation again. Thanks.
Forum: Plugins
In reply to: [jsDelivr - Wordpress CDN Plugin] HTTP status: 500 Server output:Hey, please check thread at https://www.ads-software.com/support/topic/error-msg-5?replies=8 , it’s a similar problem.
Forum: Plugins
In reply to: [jsDelivr - Wordpress CDN Plugin] Error msgIt’s a similar problem as is described in thread at
https://www.ads-software.com/support/topic/allowed-memory-size-exhausted-6?replies=4Could you try increase memory limit? But I will look for more optimized method how to download data from the jsdelivr network.
Forum: Plugins
In reply to: [jsDelivr - Wordpress CDN Plugin] Error msgIt depends on a hosting provider or server configuration.
https://stackoverflow.com/questions/5127838/where-does-php-store-the-error-log
Forum: Plugins
In reply to: [jsDelivr - Wordpress CDN Plugin] Error msgIt seems that an error occurred, but you have disabled display errors in PHP settings. Could you look into error log?