Page 1 of 1
Wrong parameter count in microformats plugin
Posted: Sat Apr 28, 2007 8:47 pm
by ChiLyn
Hi.
I consistently get this error on my entry page:
Warning: Wrong parameter count for range() in
Code: Select all
/home/content/.../serendipity/plugins/serendipity_event_microformats/
serendipity_event_microformats.php on line 249
and the hreview/hcalendar functions don't work.
Help?

Re: Wrong parameter count in microformats plugin
Posted: Sun Apr 29, 2007 1:29 pm
by garvinhicking
Hi!
Which PHP version are you using? It seems that the microformats plugin requires PHP at least 5.0, because the range() command has added the third option only in that version.
Best regards,
Garvin
Posted: Sun Apr 29, 2007 10:48 pm
by mattsches
Sorry, I was not aware of that. I'm using PHP5 for development, and I'm thinking about restricting this plugin to PHP5 only. Because there are some small issues that can be solved so much easier with PHP5.
In this case, you can try a quick fix and replace line 249 in the mentioned file with this code:
Code: Select all
$ratings = array('hReview' => range(1.0, $this->get_config('best'));
HTH
- Mattsches
Posted: Tue May 01, 2007 9:33 am
by ChiLyn
hmm -- think I am using 4... -- I will try the fix as soon as I can.
Thanks!
