Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Installed USPS Methods but now...


7 replies to this topic

#1 CYaunk

  • Community Member
  • 9 posts
  • Real Name:Charles Yaunk
  • Gender:Male
  • Location:East Texas

Posted 17 November 2011, 00:52

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 [img]http://www.lonestarchinchilla.com/store/admin/images/pixel_trans.gif[/img]

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

#2 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 17 November 2011, 02:00

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
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#3 CYaunk

  • Community Member
  • 9 posts
  • Real Name:Charles Yaunk
  • Gender:Male
  • Location:East Texas

Posted 17 November 2011, 15:46

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

#4 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 17 November 2011, 17:48

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
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#5 CYaunk

  • Community Member
  • 9 posts
  • Real Name:Charles Yaunk
  • Gender:Male
  • Location:East Texas

Posted 17 November 2011, 18:22

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

#6 CYaunk

  • Community Member
  • 9 posts
  • Real Name:Charles Yaunk
  • Gender:Male
  • Location:East Texas

Posted 17 November 2011, 18:30

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

#7 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 17 November 2011, 18:34

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
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#8 kirkdickinson

  • Community Member
  • 14 posts
  • Real Name:Kirk Dickinson

Posted 24 February 2012, 19:08

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