CYaunk Posted November 17, 2011 Posted November 17, 2011 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 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 Wallgualant 1 Quote - Chuck External links are not allowed on the osC forum. Thanks
♥kymation Posted November 17, 2011 Posted November 17, 2011 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 Quote See my profile for a list of my addons and ways to get support.
CYaunk Posted November 17, 2011 Author Posted November 17, 2011 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 Quote - Chuck External links are not allowed on the osC forum. Thanks
♥kymation Posted November 17, 2011 Posted November 17, 2011 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 Quote See my profile for a list of my addons and ways to get support.
CYaunk Posted November 17, 2011 Author Posted November 17, 2011 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 Quote - Chuck External links are not allowed on the osC forum. Thanks
CYaunk Posted November 17, 2011 Author Posted November 17, 2011 Actually it won't let me edit ANY of the options in the SHIPPING module. Quote - Chuck External links are not allowed on the osC forum. Thanks
♥kymation Posted November 17, 2011 Posted November 17, 2011 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 Quote See my profile for a list of my addons and ways to get support.
kirkdickinson Posted February 24, 2012 Posted February 24, 2012 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 Quote
Recommended Posts
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.