Guest Posted July 22, 2006 Posted July 22, 2006 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 Quote
Jan Zonjee Posted July 22, 2006 Posted July 22, 2006 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. Quote
Guest Posted July 22, 2006 Posted July 22, 2006 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? Quote
Jan Zonjee Posted July 22, 2006 Posted July 22, 2006 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. Quote
Guest Posted July 22, 2006 Posted July 22, 2006 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. Quote
Jan Zonjee Posted July 22, 2006 Posted July 22, 2006 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. Quote
Guest Posted July 22, 2006 Posted July 22, 2006 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. ??? Quote
Jan Zonjee Posted July 22, 2006 Posted July 22, 2006 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 :) 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.