Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS XML error on edit


WebMinx

Recommended Posts

I've installed the UPS XML Rates and Services v1.2.6 and when I click on the "Edit" button in the "Shipping" mod section, this error is coming up:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/colordin/public_html/store/admin/modules.php(212) : eval()'d code on line 1

 

 

Has anyone had this error and how can I fix it. :'(

Link to comment
Share on other sites

I've installed the UPS XML Rates and Services v1.2.6 and when I click on the "Edit" button in the "Shipping" mod section, this error is coming up:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/colordin/public_html/store/admin/modules.php(212) : eval()'d code on line 1

Has anyone had this error and how can I fix it. :'(

 

If you have completed the modification in the install directions regarding the 'set_function' row in your configuration table, then change this line;

 

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

 

to

 

foreach($_POST['configuration'] as $key => $value) {

 

in admin/modules.php, approx. line 48.

 

Its funny, I had the while(list) loop working on our live stores fine, but it would not work on my testing store when I finally upgraded it to XML UPS.

Matt Mika

Installed Contributions: Multi-Stores, QTPro, CCGV(trad), Batch Print, EasyPopulate, Simple Manual Order Entry, Encrypting Credit Card Via Mcrypt, UPSXML, Down for Maintenance, On The Fly GD Thumbs, SPPC, SPPC Hide, and various personal tweaks

Link to comment
Share on other sites

I've installed the UPS XML Rates and Services v1.2.6 and when I click on the "Edit" button in the "Shipping" mod section, this error is coming up:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/colordin/public_html/store/admin/modules.php(212) : eval()'d code on line 1

Has anyone had this error and how can I fix it. :'(

What Matt suggests is good advise, however I think the particular error is probably the one mentioned in step 5 of the readme.txt (list with all shipping options too long to fit in 255 characters, so gets truncated).
Link to comment
Share on other sites

That got rid of one issue...now I'm getting this error when I try to edit the UPS XML shipping module

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/colordin/public_html/store/admin/modules.php(216) : eval()'d code on line 1

Edited by WebMinx
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...