Forum Support

Shape 5
March 29, 2024, 08:22:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: JS and CSS Compression Error  (Read 796 times)
jurbieta
Jr. Member
**
Offline Offline

Posts: 5



« on: 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
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: 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 with the necessary changes.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #2 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
jurbieta
Jr. Member
**
Offline Offline

Posts: 5



« Reply #3 on: 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.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #4 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #5 on: May 08, 2015, 09:39:04 AM »

Update from the other dev:

Quote
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 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
jurbieta
Jr. Member
**
Offline Offline

Posts: 5



« Reply #6 on: May 15, 2015, 10:15:18 AM »

Now its working. Thanks for the help.  Grin
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.