PHP 5.3 with Zend Guard Loader

Technical difficulties? Ask for help here.
sirsonic
Posts: 7
Joined: Wed Jan 21, 2009 4:37 pm

PHP 5.3 with Zend Guard Loader

Postby sirsonic » Wed Aug 03, 2011 11:34 pm

I have updated our server PHP version and was forced to updated Zend to Zend Loader vs Optimizer due to incompatibilities. The version I have no longer works! How do I make it work with this new configuration?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: PHP 5.3 with Zend Guard Loader

Postby inveo » Thu Aug 04, 2011 10:20 am

PHP 5.3 and Zend Guard Loader is supported since 3.x Series.

sirsonic
Posts: 7
Joined: Wed Jan 21, 2009 4:37 pm

Re: PHP 5.3 with Zend Guard Loader

Postby sirsonic » Sat Aug 06, 2011 2:57 pm

I have updated to the new version and it works perfectly on all pages but when it is activated and a customer checks out, the order isn't recorded in the backend and shows an order number of zero. Is there something I'm missing in the setup?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: PHP 5.3 with Zend Guard Loader

Postby inveo » Sat Aug 06, 2011 5:03 pm

If it worked fine with 1.x or 2.x Series, I don't think it is related to Magic SEO URLs. I would suggest you to disable/uninstall Magic SEO URLs and then try to reproduce the problem again. I believe it will still persists.

sirsonic
Posts: 7
Joined: Wed Jan 21, 2009 4:37 pm

Re: PHP 5.3 with Zend Guard Loader

Postby sirsonic » Sat Aug 06, 2011 9:40 pm

The problem only occurs when magic seo url is included/enabled. Once commented out of application_top (turned off) everything is fine. We have been using this module for years and are starting to see negative serp changes now that it hasn't been working for awhile.

Do you have any other debugging suggestions?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: PHP 5.3 with Zend Guard Loader

Postby inveo » Sun Aug 07, 2011 7:48 am

Try to disable MSU for checkout process. Please take a look to FAQ in manual for how to do it.

sirsonic
Posts: 7
Joined: Wed Jan 21, 2009 4:37 pm

Re: PHP 5.3 with Zend Guard Loader

Postby sirsonic » Sun Aug 07, 2011 4:09 pm

The steps aren't clear. How would I do this? Do I just remove some lines from htaccess?

How can I disable Inveo Magic SEO URLs for a specified file?

You can do so by altering installation line to e.g.:
if(!in_array(basename($_SERVER['SCRIPT_NAME']), array('file1.php', 'file2.php'))) include(DIR_WS_INCLUDES . 'magic_seo_url.php');
where file1.php and file2.php are disabled files for Inveo Magic SEO URLs.

sirsonic
Posts: 7
Joined: Wed Jan 21, 2009 4:37 pm

Re: PHP 5.3 with Zend Guard Loader

Postby sirsonic » Sun Aug 07, 2011 5:09 pm

I have tested with the following line in application_top.php. It stops those pages from being rewritten by magic seo url but the error still occurs. Comment out the line completely and the error does not occur.

Code: Select all

if(!in_array(basename($_SERVER['SCRIPT_NAME']), array('shopping_cart.php', 'login.php', 'create_account.php', 'checkout_shipping.php', 'checkout_payment.php', 'checkout_confirmation.php', 'checkout_success.php'))) include(DIR_WS_INCLUDES . 'magic_seo_url.php');

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: PHP 5.3 with Zend Guard Loader

Postby inveo » Mon Aug 08, 2011 10:19 am

Try to disable MSU only for payment gateway confirmation file (I do not remember exact file name - btw you did not post what cart you are using - but I mean the file which is called when payment succeed).

sirsonic
Posts: 7
Joined: Wed Jan 21, 2009 4:37 pm

Re: PHP 5.3 with Zend Guard Loader

Postby sirsonic » Tue Aug 09, 2011 12:46 pm

We are on oscmax using the oscommerce version of MSU. We fixed the issue by adding an SSL condition. Here is the code that worked:

Code: Select all

if ($request_type != 'SSL') {

if(!in_array(basename($_SERVER['SCRIPT_NAME']), array('shopping_cart.php', 'login.php', 'create_account.php', 'checkout_shipping.php', 'checkout_payment.php', 'checkout_confirmation.php', 'checkout_success.php'))) include(DIR_WS_INCLUDES . 'magic_seo_url.php');

}