| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
This is with Ubercart-2.x-RC3
|
Ubercart |
|
|
|
||
Re: Call to undefined function uc_price() in uc_product.module o
Re: Call to undefined function uc_price() in uc_product.module o
Oh thanks It was nodewords, In the Meta Tags settings page, you should turn off the "use teaser if description is empty" setting, as that will prevent this error from happening.
Thank you - I was ready to through in the towel
Hi, thanks for your tip, which worked for me. I almost threw in the towel. With Ubercart and with Drupal. It's not the first time I have come accross some 'brick wall' that stops everything dead. I've had the white screen of death a few times, and I am now up to my limit with PHP memory with my shared hosting account. I don't think Drupal will be a long term solution for me. I think I'll code my own system from scratch and then migrate over when done. Sorry, just had to get that all off my chest. thanks again.
Re: Thank you - I was ready to through in the towel
lol amen brother. I'm in the same boat as you... been working on a project that should have taken like a month but it's taken like 8 months due to stupid little tiny things that turn out to be brick walls.... had to get it out thanks
Re: Re: Thank you - I was ready to through in the towel
This thread saved me as well
Re: Re: Re: Thank you - I was ready to through in the towel
add me to that list on the people that got saved with this thread.
Re: Re: Re: Re: Thank you - I was ready to through in the towel
Strange thing is, I'm getting this error now too. Except I don't use Nodewords or Meta Tags, etc. Can I get a pointer as to what I should look for? The d.o. pages talk about moving hook_init functions to hook_preprocess_page. It's obviously a 3rd-party module that's causing the problem, and until I've figured out how to do backtraces on this stack, any tricks of the trade (or at least things to check) would be appreciated
Re: Re: Re: Re: Re: Thank you - I was ready to through in the to
It turns out to just be a {system} table weight issue. I set the weight for uc_price to be -10, way ahead of the other modules trying to call it, and that seems to have solved the problem. Seems like this is an issue I keep seeing time and again. Wonder if there's a fix being cooked up.
Re: Re: Re: Re: Re: Re: Thank you - I was ready to through in th
You mean uc_store, right? uc_price isn't a module, I don't think. At any rate, it might be that something is using uc_currency_format() before uc_store_init() is called. This function is now a wrapper for uc_price(), and I'm just now realizing how that can cause problems.
Re: Re: Re: Re: Re: Re: Re: Thank you - I was ready to through i
Yeah sorry. Set uc_store to a lower weight. Weird thing is the only pages this seemed to happen on were admin order detail pages. I can reset the store module weight and do more digging if you'd like.
where do we set the uc_store weight
where do i go to set the weight of uc_store?
Re: where do we set the uc_store weight
Well it's a database table thing, but we're trying to narrow down the actual issue. (Read the drupal.org page that's linked in the 2nd post). Setting the uc_store weight is really more of a band-aid than an actual fix.
Thank you
Nice tip, saved me many hours of debugging! Everyone, You don't want to leave Drupal/UC UberCart is the most flexible system available. Sure, there's a learning curve and you run into a bug or two, but in the end it's always just a one line fix somewhere, rather than a whole re-write. Also, Think about the great community of people here to help you if you get stuck with something like this If you do go a different route, from my personal experience, may I suggest you stay far, far away from anything to do with Joomla. Good luck to all.
To Change the Table Weight
Hey - I didn't know how to change the table weight either (DB noob). TR in the #drupal-ubercart IRC channel pointed me in the right direction... In phpmyadmin, find and click the "system" table in the left hand column. The next page you see will have a "browse" tab at the top - click it. Find uc_store and click the edit button. Change the weight to -10. I realize this is very basic for most here, but this will probably help someone. Thanks guys.
Re: To Change the Table Weight
Basic to some, sure, but it's really not the ideal solution. (A normal Mom and Pop store owner would never know how to do that, for example.) Glad you got it working.
#16
Naah ... changing the weight of the uc_store module doesn't help. Is someone working on the trobleshoot? Would be glad to get this working,r eally! |
|