Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/rdzfinea/public_html/store/admin/manufacturers.php on line 33


Guest

Recommended Posts

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/rdzfinea/public_html/store/admin/manufacturers.php on line 33

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/rdzfinea/public_html/store/admin/includes/functions/database.php on line 55

Warning: Variable passed to each() is not an array or object in /home/rdzfinea/public_html/store/admin/includes/functions/database.php on line 79
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where manufacturers_id = '17'' at line 1

update manufacturers se where manufacturers_id = '17'

[TEP STOP]

 

This is the complete error code that I'm getting. I have searched the forums for the past 2 hours and I haven't found anything about this particular error on the manufacturers page in the admin section. There were a couple of other people that had the same problem, but no resolution yet.

 

Please help!!

 

Thank you.

Link to comment
Share on other sites

very easy to fix, do the search on the forum, I personally described how to fix this issue, as it is the PHP language bug correction.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

  • 1 year later...

very easy to fix, do the search on the forum, I personally described how to fix this issue, as it is the PHP language bug correction.

 

I appreciate that you say this issue is "very easy to fix", however I am experiencing this very same issue and I can not find any posts dealing with the "PHP language bug correction" the only thing I can find is this post that I am replying to.

 

Could someone please either detail the very easy fix to this issue or link to the post that deals with the issue.

 

Thank you.

Link to comment
Share on other sites

I found a link that talks about this issue.

 

http://www.oscommerce.com/forums/topic/284290-array-merge-problems-in-php52x/page__p__1472486__hl__Argument%20entry1472486

 

It seems to be caused by an incompatibility with php 5 and the way the code uses the array_merge() function, if you put (array) in front of each item within the brackets the issue seems to be resolved. eg

$sql_data_array = array_merge((array)$sql_data_array, (array)$update_sql_data);

instead of

$sql_data_array = array_merge($sql_data_array, $update_sql_data);

 

I hope this helps.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...