Page 1 of 1

[fix]

Posted: 11 Dec 2014, 19:14
by carsten888
this is a fix for this bug at the frontend:
Strict Standards: Non-static method PhocaguestbookHelperReCaptcha::recaptcha_get_html() should not be called statically, assuming $this from incompatible context in path\components\com_phocaguestbook\models\fields\phocacaptcha.php on line 47
Obviously one should not use strict standards on a live website, but as 'strict' is the default on a local WAMP install you might want to fix it anyway.

file:
components/com_phocaguestbook/models/fields/phocacaptcha.php
line 47

Code: Select all

$retval = '</div><div>' . PhocaGuestbookHelperReCaptcha::recaptcha_get_html($publicKey);
change to

Code: Select all

$temp = new PhocaGuestbookHelperReCaptcha;
				$retval = '</div><div>' . $temp->recaptcha_get_html($publicKey);

Re: [fix]

Posted: 12 Dec 2014, 00:55
by Jan
Hi, see:
https://www.phoca.cz/documents/50-phoca/ ... tic-method

I am trying to change parts which caused these warnings, but this takes a lot of time as many parts of code were written for previous PHP versions (we are speaking about more than 500.000 lines of code :-( which needs to be checked - so this is done step by step)

So thank you very much for the info, please let me know in which version this occurs, so I can fix it for next version.

Thank you, Jan

Re: [fix]

Posted: 12 Dec 2014, 08:47
by carsten888
guestbook 3.0.2 on joomla 3.3.6

Re: [fix]

Posted: 12 Dec 2014, 13:51
by Jan
Thank you very much, I will fix it in next version.

Jan