[fix]

Phoca Guestbook - creating guestbooks in Joomla! CMS
carsten888
Phoca Member
Phoca Member
Posts: 35
Joined: 22 Oct 2008, 12:11
Location: Tilburg, Holland
Contact:

[fix]

Post 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);
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [fix]

Post 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
If you find Phoca extensions useful, please support the project
carsten888
Phoca Member
Phoca Member
Posts: 35
Joined: 22 Oct 2008, 12:11
Location: Tilburg, Holland
Contact:

Re: [fix]

Post by carsten888 »

guestbook 3.0.2 on joomla 3.3.6
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [fix]

Post by Jan »

Thank you very much, I will fix it in next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply