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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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. |
|
#2
| ||||
| ||||
| It should be fine, but I think the issue is this: $gzip === 1 It should probably be $gzip == 1 In this line: PHP Code:
__________________ 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. |
|
#3
| |||
| |||
| 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. |