Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: addslashes() expects parameter 1 to be string, array given in /admin/modules.php on line 38


negativeexistence

Recommended Posts

Posted

Hello,

When I altered my usps shipping info and selected save I get:

 

 

Warning: addslashes() expects parameter 1 to be string, array given in /home/negative/public_html/snowdenguitars/admin/modules.php on line 38

 

Warning: addslashes() expects parameter 1 to be string, array given in /home/negative/public_html/snowdenguitars/admin/modules.php on line 38

 

Warning: addslashes() expects parameter 1 to be string, array given in /home/negative/public_html/snowdenguitars/admin/modules.php on line 38

 

Warning: Cannot modify header information - headers already sent by (output started at /home/negative/public_html/snowdenguitars/admin/modules.php:38) in /home/negative/public_html/snowdenguitars/admin/includes/functions/general.php on line 34

 

any ideas?

Thanks,

-Alex

Posted

btw 38 is

tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . addslashes( addslashes( $value ) ) . "' where configuration_key = '" . $key . "'");

Posted

When you say you altered the info, I assume you mean you made some text changes. If so, such a problem shouldn't happen. I suggest you remove whatever changes you made and make sure the module works and that you can edit and save. If you can't then there is some other problem. If you can, then try your changes again one at a time and when it fails, post the before and after code here with a description of what was done.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Before:

tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . addslashes( addslashes( $value ) ) . "' where configuration_key = '" . $key . "'");

 

Atempted change with same warning message:

tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . addslashes( $value ) . "' where configuration_key = '" . $key . "'");

 

Since it didn't work, I changed it back.

 

Does the "addslashes() expects parameter 1 to be string, array given in" indicate the database needs to be changed to accept arrays rather than strings?

Posted

No, I was referring to your changes, not the one I mentioned. You originally said, "When I altered my usps shipping..." If you remove that change, whatever it was, does the code work?

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

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

×
×
  • Create New...