Results 1 to 3 of 3

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 FreeBSD ...

      
  1. #1
    Lurker
    Join Date
    Jan 2008
    Posts
    3
    Rep Power
    0


    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.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Lurker
    Join Date
    Jan 2008
    Posts
    3
    Rep Power
    0


    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •