Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS Choice 1.8 Error - Fatal error: Call to undefined function: tep_cfg_select_multioption()


Recommended Posts

Posted

I received this when installing the UPS Choice 1.8 module. the module is visable in the admin, i receive this error when i try to edit the settings of the module.

 

 

Any Ideas? :o

Posted
I received this when installing the UPS Choice 1.8 module. the module is visable in the admin, i receive this error when i try to edit the settings of the module.
That is exactly the same question you asked in the General Support section 12 hours ago.

 

What does the error say? It says: undefined function. So PHP knows nothing about the function. Conclusion: you didn't add this function to admin/includes/general.php. Simple as that.

Posted
That is exactly the same question you asked in the General Support section 12 hours ago.

 

What does the error say? It says: undefined function. So PHP knows nothing about the function. Conclusion: you didn't add this function to admin/includes/general.php. Simple as that.

 

 

thanks, i have fixed the error and he module is working fine except that when i click to view my customer orders, i now receive this error message:

 

Fatal error: Call to undefined function: tep_is_allowed_to_view_order() in public_html/admin/orders.php on line 86

 

What do you think?

Posted
Fatal error: Call to undefined function: tep_is_allowed_to_view_order() in public_html/admin/orders.php on line 86

 

What do you think?

That you made the same mistake when you were adding a multiple admin contribution perhaps? tep_is_allowed_to_view_order is not a standard osC function. You might have added it to the wrong /functions/general.php, so not in the admin/function/general.php or not at all.
Posted
That you made the same mistake when you were adding a multiple admin contribution perhaps? tep_is_allowed_to_view_order is not a standard osC function. You might have added it to the wrong /functions/general.php, so not in the admin/function/general.php or not at all.

 

 

Sorry, i am new to osC, what do you mean by:

 

so not in the admin/function/general.php or not at all.

Posted
so not in the admin/function/general.php or not at all.
My fault: I should have written: admin/includes/functions/general.php. osC has two general.php files (there is a lot more duplicate files than those two): one in catalog/includes/functions/ and the other in admin/includes/functions/. Functions needed in the admin part go there, functions needed on the catalog side go in the catalog/functions/general.php.

 

If you add a function to the wrong file it will not be "loaded", therefore the error: undefined function. The same happens if you haven't added the function at all.

Posted
My fault: I should have written: admin/includes/functions/general.php. osC has two general.php files (there is a lot more duplicate files than those two): one in catalog/includes/functions/ and the other in admin/includes/functions/. Functions needed in the admin part go there, functions needed on the catalog side go in the catalog/functions/general.php.

 

If you add a function to the wrong file it will not be "loaded", therefore the error: undefined function. The same happens if you haven't added the function at all.

 

 

In my osC, i do not have a catalog/. i have the admin/includes/functions/general.php and the other is includes/functions/general.php. I have added the new script to the admin/includes/functions/general.php. If i add it to the other, it shuts down the web site with a similar error code referncing banner.php. The way i have it now, the site is fine, the UPS Choice module is working, but i receive that error msg for orders and the config section of my admin. ???

Posted
I have added the new script to the admin/includes/functions/general.php. If i add it to the other, it shuts down the web site with a similar error code referncing banner.php. The way i have it now, the site is fine, the UPS Choice module is working, but i receive that error msg for orders and the config section of my admin. ???
The function tep_is_allowed_to_view_order is found in the Multi-Stores multiple shop system contribution, in admin/includes/functions/general.php only.

 

There are no install texts with that contribution as far as I can see, so I guess you replaced your stock files with those from that contribution? Or did you do the same thing when installing another contribution, therefore in essence throwing out (parts) of the Multi-Stores multiple shop system?

 

A lot of people seem to think that you can do things with osC without knowing a thing about PHP. I tend to disagree strongly with that. You can save yourself a lot of time and grey hairs by learning a bit about that language when you want to add contributions to osC. Just my two cents :)

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