Shape 5

Wordpress Club Themes => Corpway - Club => : jurbieta May 01, 2015, 11:11:57 AM



: JS and CSS Compression Error
: jurbieta May 01, 2015, 11:11:57 AM
When I enable js compression and css compression, i get the following error in both the header and footer of my site. I could change the .php file directly as the code expects, but that doesn't fix the issue with the UI.


Warning: fopen(wp-content/themes/s5_corpway/cache/top_compression_js.php): failed to open stream: HTTP wrapper does not support writeable connections in public_html/test3/wp-content/themes/s5_corpway/vertex/compression/top_css_and_js_compression.php on line 213

Warning: fwrite() expects parameter 1 to be resource, boolean given in public_html/test3/wp-content/themes/s5_corpway/vertex/compression/top_css_and_js_compression.php on line 217

Warning: fclose() expects parameter 1 to be resource, boolean given in public_html/test3/wp-content/themes/s5_corpway/vertex/compression/top_css_and_js_compression.php on line 219

Warning: fopen(wp-content/themes/s5_corpway/cache/top_compression_css.php): failed to open stream: HTTP wrapper does not support writeable connections in public_html/test3/wp-content/themes/s5_corpway/vertex/compression/top_css_and_js_compression.php on line 297

Warning: fwrite() expects parameter 1 to be resource, boolean given in public_html/test3/wp-content/themes/s5_corpway/vertex/compression/top_css_and_js_compression.php on line 303

Warning: fclose() expects parameter 1 to be resource, boolean given in public_html/test3/wp-content/themes/s5_corpway/vertex/compression/top_css_and_js_compression.php on line 305


: Re: JS and CSS Compression Error
: Tristan Rineer May 01, 2015, 03:31:37 PM
You're the first user to have this problem; I've passed this thread on to the developers who created that portion of the framework, as I haven't had anything to do with the code in that file.  Once I get feedback on a potential fix, I'll be updating the Vertex Upgrade Patch (http://www.shape5.com/component/option,com_docman/Itemid,96/task,cat_view/gid,308) with the necessary changes.


: Re: JS and CSS Compression Error
: Tristan Rineer May 04, 2015, 09:44:20 AM
I've been told to ask what version of PHP you're running.  The Joomla version of the framework uses the exact same code, and even with the significantly larger number of members, nobody on Joomla has had the issue you're having; this most likely means you either have something disabled in PHP that is needed, or your PHP version is out of date.

If you can PM me information for FTP access, I'll pass it along to be looked at, but it's most likely a server issue.


: Re: JS and CSS Compression Error
: jurbieta May 04, 2015, 10:44:20 AM
The version of PHP on my server is 5.4.38. This is hosted on a shared server on Hostgator.com.


: Re: JS and CSS Compression Error
: Tristan Rineer May 07, 2015, 10:30:57 AM
Update: The access information you provided has been forwarded to the developer who worked on the relevant section of the code; I'll give more information when he gets back to me.


: Re: JS and CSS Compression Error
: Tristan Rineer May 08, 2015, 09:39:04 AM
Update from the other dev:

I was able to replicate the exact same problem on a Siteground dev site and fix it there. It works fine on that dev site and also on localhost now. On his site there are no errors, and I have the compression enabled, but it?s not actually putting anything in the cache folder of his site. I think he has something blocking it or he has kind of server or site cache enabled so updates are showing on his site. As of now I have it working in two locations, so this comes down to something in his environment preventing it from working, but no error messages should be showing. I would maybe ask him to copy over vertex/compression/ to his live site to see if it works there with any server/site cache completely disabled.

I have updated the Vertex Upgrade Patch (http://www.shape5.com/component/option,com_docman/Itemid,96/task,cat_view/gid,308) with the fixed files; but as he said, if there's something on your server that's preventing it from writing the cache files, the caching won't actually work.


: Re: JS and CSS Compression Error
: jurbieta May 15, 2015, 10:15:18 AM
Now its working. Thanks for the help.  ;D