Welcome, Guest
Username: Password: Remember me

TOPIC: PHP error regarding bccomp after 2.7.2e upgrade

PHP error regarding bccomp after 2.7.2e upgrade 13 years 11 months ago #11671

  • harwood31
  • harwood31's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Following the 2.7.2e upgrade my site is getting the following error in the webserver log:
Joolma:lsapi] [STDERR] PHP Fatal error: Call to undefined function bccomp() in /.../html/components/com_dtregister/controllers/payment.php on line 53

I had 2.7.2c installed prior to this, and working as well of the forums indicates it could. Now, all registrations attempts end up with a blank white page such as:
https://mysite.com/index.php?option=com ... s&Itemid=0

Figuring there was a problem with my PHP version I just upgraded it to 5.3.4. I am using Joomla 1.5.22 as well.

Any ideas?

Please Log in or Create an account to join the conversation.

PHP error regarding bccomp after 2.7.2e upgrade 13 years 11 months ago #11672

  • harwood31
  • harwood31's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Not sure if this is the best solution but it seems to have worked. I rebuilt my PHP binary with this option in the new configure statement: '--enable-bcmath'.

This worked for me, so far as my testing shows, but in my case I'm in complete control of my testing webserver. Production hosting could be another matter.

Seems to be unnecessary since no one else is reporting the issue, nor have you announced any new requirements for 2.7.2e.

Please Log in or Create an account to join the conversation.

PHP error regarding bccomp after 2.7.2e upgrade 13 years 11 months ago #11677

  • nifas
  • nifas's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Hi,

I am having the same issue but have no control over my hosted server..

I am awaiting a submitted ticket and until then, I am loosing any registration = no business...??

I'm hoping the guys can sort it as they always do with ease.

Please Log in or Create an account to join the conversation.

PHP error regarding bccomp after 2.7.2e upgrade 13 years 11 months ago #11733

  • harwood31
  • harwood31's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Since my PHP binary change I'm seeing a large number of errors in my logs. Not likely due to DTRegister, but the "fix" starting to become a non-option.


... [STDERR] PHP Warning: getdate() [<a href='function.getdate'>function.getdate]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST'...

Please assist with the original problem.

Please Log in or Create an account to join the conversation.

PHP error regarding bccomp after 2.7.2e upgrade 13 years 11 months ago #11737

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Yes, since 2.7.2e, you need to have BCMath enabled in your php. Most people should already have this. Those that don't, it should not be a big deal to have it enabled. A contact to your host should be able to get it done. This was needed to enhance and fix some calculation issues. Your php configuration as seen in the backend of Joomla should show this:

BCMath support enabled

Please Log in or Create an account to join the conversation.

PHP error regarding bccomp after 2.7.2e upgrade 13 years 11 months ago #11740

  • harwood31
  • harwood31's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Well it is enabled now... I added it to my test. But I think i missed that as a new requirement from version c or d?

Seems that the error I'm getting is common in php 5.3 which was also a recent change for me. Any ideas how to suppress it? My php performance has taken a big hit with these changes.

Please Log in or Create an account to join the conversation.

Time to create page: 0.172 seconds