Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

After installing USPS methods in OsCommerce 2.2 I get this below when going into the shipping module on the administration side and don't have a clue how to FIX it, HELP:

 

Shipping Modules pixel_trans.gif

 

Warning: main(/home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php) [function.main]: failed to open stream: No such file or directory in /home/chuck/htdocs/store/admin/modules.php on line 132

 

Warning: main(/home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php) [function.main]: failed to open stream: No such file or directory in /home/chuck/htdocs/store/admin/modules.php on line 132

 

Warning: main() [function.include]: Failed opening '/home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php' for inclusion (include_path='.:/usr/local/share/pear') in /home/chuck/htdocs/store/admin/modules.php on line 132

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_parser_set_option(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/modules/shipping/xml.php on line 63

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/modules/shipping/xml.php on line 64

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/modules/shipping/xml.php on line 64

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_element_handler(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/modules/shipping/xml.php on line 65

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_character_data_handler(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/modules/shipping/xml.php on line 66

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_parser_free(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/modules/shipping/xml.php on line 68

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_parse(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/modules/shipping/xml.php on line 73

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_parse(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/modules/shipping/xml.php on line 73

 

Fatal error: Cannot redeclare xml_unserialize() (previously declared in /home/chuck/htdocs/store/admin/includes/classes/xml.php:16) in /home/chuck/htdocs/store/includes/modules/shipping/xml.php on line 16

- Chuck

External links are not allowed on the osC forum. Thanks

Posted

This message: Warning: main(/home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php) says that file is missing.

 

The rest seem to be caused by using the wrong file at store/includes/modules/shipping/xml.php. There's an upgraded version of that called xml5.php that should work for you. If it's not in the package you installed, post here and I'll attach a copy.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

I had the file named xml_5.php in the package. I went in and renamed it to what you said, xml5.php and put it in the directories but am still getting the same error messages. Are BOTH the files xml.php AND xml5.php supposed to be in the same directories? For an update here are the errors I am receiving now in the shipping module on the administration side:

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_parser_set_option(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 63

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 64

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 64

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_element_handler(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 65

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_character_data_handler(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 66

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_parser_free(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 68

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_parse(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 73

 

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_parse(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 73

 

Fatal error: Cannot redeclare xml_unserialize() (previously declared in /home/chuck/htdocs/store/admin/includes/classes/xml.php:16) in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 16

- Chuck

External links are not allowed on the osC forum. Thanks

Posted

Sorry, that was a typo. xml_5.php is correct.

 

Both xml.php and xml_5.php do the same thing. The code is supposed to select the correct one based on your version of PHP. This appears to not work in your case. As a quick workaround, rename xml_5.php to xml.php and upload it over the existing file. That should get rid of the current batch of errors.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

Well it's getting better, now when going into administration side and into the shipping module I get the error below but it also does not allow me to EDIT ANYTHING in the USPS shipping module now...click on it but nothing happens....Grrrrrrrrrrrrrr.

 

Fatal error: Cannot redeclare xml_unserialize() (previously declared in /home/chuck/htdocs/store/admin/includes/classes/xml.php:24) in /home/chuck/htdocs/store/includes/languages/english/modules/shipping/xml.php on line 24

- Chuck

External links are not allowed on the osC forum. Thanks

Posted

Actually it won't let me edit ANY of the options in the SHIPPING module.

- Chuck

External links are not allowed on the osC forum. Thanks

Posted

That error message says you have uploaded the wrong file to /store/admin/includes/classes/xml.php Replace it with the correct file from the package.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

  • 3 months later...
Posted

I have a very similar error after trying to install the FedEx Module.

 

Fatal error: Cannot redeclare xml_unserialize() (previously declared in /home/headtail/secure_html/catalog/admin/includes/classes/xml_5.php:24) in /home/headtail/secure_html/catalog/includes/modules/shipping/xml.php on line 21

 

I tried replacing the xml.php file with the original one that is in my OSCommerce 2.2RC package. No Joy.

 

Is there something else that I can try?

 

Thanks,

 

Kirk

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...