Closed (fixed)
Project:
Yr Weatherdata
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 May 2011 at 13:26 UTC
Updated:
24 Feb 2012 at 12:43 UTC
Jump to comment: Most recent file
Comments
Comment #1
tjodolv commentedbcmul()is a function in php. This error means that the php version on your server has not been compiled with the necessary library, called BC Math (http://php.net/manual/en/book.bc.php). You need to talk to your server admin about this.Comment #2
tjodolv commentedClosing this as this is an issue with the server PHP installation, not this module or Drupal.
Comment #3
reswild commentedIf your sever isn't compiled with bcmath, you can add the following replacement functions to your code:
...or just activate the enclosed module if you don't know where to add the above code.
Comment #4
ElvinJones commentedWorked like a charm! Got it also working when i added bcmath to my webserver as you suggested earlier.
Thanks alot!
Comment #5
tjodolv commentedThanks for the code, reswild. I assume I can include this in future versions of the Yr module?
Comment #6
reswild commentedYou can of course use it if you like. I just copied it from a user comment in the php user manual.
Comment #7
tjodolv commentedGreat, thank you for the contribution :)
Comment #9
waverate commentedFor RHEL, I added the php-bcmath rpm
Comment #10
hansfn commentedI'm sorry to comment on a fixed issue, but is it really necessary that this module "requires" the bcmath PHP extension? Couldn't the module just include the code/patch from reswild in comment 3? Those 7 extra lines would have saved me some time today ;-)
Comment #11
tjodolv commentedYes, I will incorporate this in the next release of the module. I haven't had the time to work on it the last few months because of school, but I have some more time on my hands the next months :)