I deleted "onmouseout="return nd()" from "Admin->Orders" to see if thats where it was comming from and its not.
It still shows up.
2nd. It works fine when someone order 1 item. But if they order 2 or more it gets wackey.
I deleted "onmouseout="return nd()" from "Admin->Orders" to see if thats where it was comming from and its not.
It still shows up.
2nd. It works fine when someone order 1 item. But if they order 2 or more it gets wackey.
My host just updated to PHP5 today, and it killed this mod.
I now get this error in the admin sidebox where this Info is normally displayed:
Fatal error: Cannot use object of type queryFactoryResult as array in /home2/spunycom/public_html/admin/index.php on line 177
In my admin/index.php, line 177 is echo $orders['orders_id']; in the Info At a Glance code:
Does anyone know how to make this compatable with PHP5?Code:// ====> BOF: INFO AT-A-GLANCE <==== echo $orders['orders_id']; $artikel = ""; $num = 1; $result_artikels = $db->Execute("select products_name, products_quantity from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . zen_db_input($orders->fields['orders_id']) . "' "); while(!$result_artikels->EOF){ $artikel .= ($result_artikels->fields["products_quantity"]) . "x " . ($result_artikels->fields["products_name"]) . "<br>"; $num++; $result_artikels->MoveNext(); } { $parsedComment = explode("\r", $artikel); $cleanComment = ""; $i=0; while($i < count($parsedComment)) { $cleanComment .= trim($parsedComment[$i]); $i++; if ($i < count($parsedComment)) $cleanComment .= '<br \> '; } ?> <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:void(0);" onmouseover="return overlib(\\\'' . $cleanComment . '\\\');" onmouseout="return nd();"><img src="images/icons/comment2.gif" align="top" border=0></a> '; ?>'); --></script> <?php } ?> <?php // ====> EOF: INFO AT-A-GLANCE <====
I'm using Zen 1.3.6
Last edited by Taipa; 1 Nov 2007 at 11:12 PM.
Hmm I don't think zen-cart itself is compatible with PHP5. Just because they updated doesn't mean they are forcing you to use it yet. We still got 94 days before the golive data where they force the switch.
Contact your provider, they would have to tell you if they were switching you to PHP5 and they should be able to put a custom php.ini file or htaccess switch to force php4. But I think you'd lose all zen-cart functionality if they upgraded to php5
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
I use camelot-hosting (from the Hosting page on this site), and they just upgraded to PHP5. They're a Zen Cart host, so I don't think they'd puposely screw everyone over if Zen Cart did not work with PHP5 at all.
Everything else with my Zen Cart works just fine, it's just the Info at a Glance part that's causing an error, and I don't know enough about PHP to fix it myself. :/
Well many hosts are PHP5 but they still support the PHP4 customers by adding a configuration line in the server setup. Ask them if they switched you over.. but still I don't think half of zen-cart would work on PHP5. But perhaps something else got changed in their upgrade.
All of the hosts I've used are both as well. They can't stop supporting PHP4 until the GOphp5 live date.
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
I just have moved to PHP5 and everything works fine except Info At A Glance mod.
I have the same error
Fatal error: Cannot use object of type queryFactoryResult as array in /home/account/public_html/admin/index.php on line 184
Info At A Glance is a great and handy mod and it is sad that it does not work with PHP5.
I have found the solution for Fatal Error in PHP5, in admin/index.php one must change the Line 182:toPHP Code:
echo $orders['orders_id'];
PHP Code:
echo $orders->fields['orders_id'];
I noticed two other issues with my Zen-Cart Site and my new server with PHP5:
1. HTML emails are not displaying correctly, see this thread http://www.zen-cart.com/forum/showthread.php?p=462015
2. Tools-Template Selection-New language returns the folowing error:
Catchable fatal error: Object of class queryFactoryResult could not be converted to string in /home/myaccount/public_html/admin/includes/functions/html_output.php on line 333, see this thread http://www.zen-cart.com/forum/showth...t.php+line+333.
Averything else is ok. So far...
Bookmarks