osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Using OSCMAX without gzdeflate() ?

This is a discussion on Using OSCMAX without gzdeflate() ? within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hello all, Thanks for reading. I was having some issues performing a fresh install of osCMax v2.0 RC3 on ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 01-25-2008, 10:59 AM
Lurker
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mulder is on a distinguished road
Default Using OSCMAX without gzdeflate() ?

Hello all,
Thanks for reading. I was having some issues performing a fresh install of osCMax v2.0 RC3 on FreeBSD running php 5.2.3

After each fresh install the admin section was working perfectly but the entire catalog was blank. (I have seen that several other members had this exact same issue)
I was getting 2 fatal php errors:

(1) PHP Fatal error: Call to undefined function gzdeflate() in /includes/classes/cache.class.php on line 73
(2) PHP Fatal error: Call to undefined function gzdeflate() in /includes/classes/cache.class.php on line 152

The lines in the includes/classes/cache.class.php these errors refer to are:
(Line 73)
$value = ( $gzip === 1 ? base64_encode(gzdeflate($value, 1)) : addslashes($value) ); // addslashes if not compressed
(Line 152)
$cache_data = ( $cache['cache_gzip'] == 1 ? gzinflate(base64_decode($cache['cache_data'])) : stripslashes($cache['cache_data']) );


In order to get the catalog working I simply commented
those 2 lines from the cache.class.php file out.
Everything seems to work fine, but I am wondering if this is an okay fix
in order to get my site working? Might some functionality not work if I keep
those lines commented out?

Thanks very much for reading and for any assistance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-25-2008, 11:51 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,246
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Using OSCMAX without gzdeflate() ?

It should be fine, but I think the issue is this:

$gzip === 1

It should probably be

$gzip == 1

In this line:

PHP Code:
$value = ( $gzip == base64_encode(gzdeflate($value1)) : addslashes($value) ); // addslashes if not compressed 
Activate the code again and see if the error is fixed. If not, keep it deactivated.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 01-25-2008, 12:44 PM
Lurker
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mulder is on a distinguished road
Default Re: Using OSCMAX without gzdeflate() ?

Thanks for the reply.

If I change line 73 from '$gzip === 1' to '$gzip == 1' things seem to work
but only if I continue to have line 152 commented out. So while line 73 is fixed, line 152 still causes the original error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -8. The time now is 08:42 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax