siliconsys.com/blog main | forums | support | host | blog 
siliconsys.com forums oscommerce siliconsys.com forums zencart siliconsys.com forums oscommerce zencart

November 26, 2007

PHP5 array_merge() Compatibility

PHP5 changed the function definition for the array_merge() function. It no longer accepts a string or array for the search parameter. Now both parameters must be arrays.

If you are experiencing issues with not being able to edit or delete products, users or orders in the PHPCatalog admin panel, this bug may be affecting you.

More information about the PHP change may be found on PHP's site.
http://us2.php.net/manual/en/function.array-merge.php

This change has been implemented in the PHPCatalog core code for over a year, but we have had some reports of issues with older versions. To update your install, make the code change below in catalog/include/stdlib.inc.

Backup before performing any code changes!

OLD

function extra_vars($remove='') {
                global $form;

                $rem_arr = array('id', 'function', 'sel_category');
                $rem_arr        = array_merge($remove, $rem_arr);

                foreach($_GET as $key => $val)  {
                        if(!in_array($key, $rem_arr))
                                $extra_vars .= $key . '=' . $val . '&';
                }

                if(isset($form['query']) && $form['query'] != '' && ! isset($_GET['query'])) $extra_vars .= 'query=' . urlencode($form['query']) . ' ';
                if($extra_vars != '')   {
                        $extra_vars = substr($extra_vars, 0, -1);
                        $extra_vars = '&' . $extra_vars;
                }

NEW PHP5

/**
         * return variables passed in get as string for inclusion in URL
         *
         * @param array $remove
         * @return string
         */

        function extra_vars($remove='') {
                global $form;

                if(! is_array($remove)) $remove = array($remove);
                $rem_arr = array('id', 'fn', 'sel_category', 'mod', 'act', 'submit', 'sort', 'cat_id');
                $rem_arr = array_merge($remove, $rem_arr);

                foreach($_GET as $key => $val)  {
                        if(is_array($val))      {
                                foreach($val as $key1 => $val1) {
                                        if(!in_array($key1, $rem_arr))
                                                $extra_vars .= $key . '['.$key1 . ']=' . $val1 . '&';
                                }
                        }       else   {
                                if(!in_array($key, $rem_arr))
                                        $extra_vars .= $key . '=' . $val . '&';
                        }
                }

                if(isset($form['query']) && $form['query'] != '') $extra_vars .= 'query=' . urlencode($form['query']) . ' ';
                if($extra_vars != '')   {
                        $extra_vars = substr($extra_vars, 0, -1);
                        $extra_vars = '&' . $extra_vars;
                }
                return $extra_vars;
        }

Filed under: PHPCatalog, Bugs — dev @ 8:53 am

February 12, 2007

PHP5 Compatibility Upgrade

We have upgrade kits available to upgrade your existing PHPCatalog 2.6 or greater to full PHP5 compatibility. Most versions require changing only two to three files.

Kits are $25 for all PHPCatalog versions greater than v2.6. Existing PHPCatalog+ customers with a support contract may receive the upgrade for free.

To request the files open a new support ticket at:

http://support.siliconsys.com/software/

Please provide:

  • Links to public and admin side of your catalog
  • License key
  • Original invoice number

We can also provide the upgrade as a service. If you would like us to perform the upgrade on your server, the cost is $50 for software and installation.

Order PHP5 Upgrade Service

Filed under: PHPCatalog — dev @ 9:56 am

June 12, 2006

New Admin Features - AJAX Enabled Product Form Validation

We are testing an admin panel addon that allows validation and duplicate checking for the product name and sku fields.

If you would like to be a beta test for this functionality, please contactus with your PHPCatalog+ Version and a link to your site.

Filed under: PHPCatalog — dev @ 4:55 pm

April 26, 2006

PHPCatalog+ External Beta Testers Needed

We are working on an external module that hooks into PHPCatalog+’s product listing and display features. This should make it easier to to fully integrate PHPCatalog+ into a site.

You can list special products, recently added, list specific categories, even show random products. Most features can be displayed in a list or product detail view. Support for using PHPCatalog+’s existing templates or template-less formatting.

Contact us at http://siliconsys.com/content/siliconsys/sales/phpcatalog to be considered as a beta tester. Please include a link to your PHPCatalog site.

Filed under: PHPCatalog — dev @ 3:58 pm

April 11, 2006

PHPCatalog+ Template Class Now Parses PHP

We have updated the internal PHPCatalog template class to support PHP and include()’s/require()’s directly in template files.

To request this updated file, please open a support ticket in your account. If your upgrade support account has expired, this file may be purchased for a nominal $5.00.

Filed under: PHPCatalog — dev @ 2:02 pm
Next Page »

Powered by WordPress