Phoca Guestbook Beta 4

Phoca Guestbook - creating guestbooks in Joomla! CMS
mauriziodematteis
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 12 Mar 2022, 12:26

Phoca Guestbook Beta 4

Post by mauriziodematteis »

Hello,
installation perfect.
No bugs.
When i am trying to post no entry is generated.

Regards
Maurizio

PHP-Version 7.4.28
Joomla! 4.1.0 Stable
Webserver Apache
PHP-Interface fcgi-fcgi
SSL active
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Guestbook Beta 4

Post by Jan »

Hi, what message do you get after pasting the post in frontend? Do you see the message in administration? Were you logged in or pasted as not registered?

Jan
If you find Phoca extensions useful, please support the project
mauriziodematteis
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 12 Mar 2022, 12:26

Re: Phoca Guestbook Beta 4

Post by mauriziodematteis »

Hi Jan,
no message on the screen.
No message in front end and no entry in backend.

Posting in ACL allowed für guests.

Regards Maurizio
mauriziodematteis
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 12 Mar 2022, 12:26

Re: Phoca Guestbook Beta 4

Post by mauriziodematteis »

Hi Jan,
after activating debug i get:

ARGUMENT 1 PASSED TO JOOMLA\FILTER\INPUTFILTER::__CONSTRUCT() MUST BE OF THE TYPE ARRAY, STRING GIVEN, CALLED IN .../JOOM4/LIBRARIES/SRC/FILTER/INPUTFILTER.PHP ON LINE 66

Regards
Maurizio
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Guestbook Beta 4

Post by Jan »

Hi,

thank you for the info. Unfortunately this error message does not say it enough. We need to know the debug trace - which function called this function so we know where the error occured.

When you enable debug mode and displaying of PHP errors on your site, do you get the error (including) debug trace in your browser?

Try to install this debug plugin and enable it (it should stop the script when there is an error and write all the debug information including trace):

https://bitbucket.org/n3t/n3t-debug/downloads/

EDIT: I see there is only one place where the construct is called, try to open this file on your server:

components/com_phocaguestbook/models/guestbook.php
on line cca: 63

and change

FROM:

Code: Select all

$filterTags    = '';//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
$filterAttrs  = '';//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
TO:

Code: Select all

$filterTags    = [];//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
$filterAttrs  = [];//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
and let me know if this helped.

Thank you, Jan



Jan
If you find Phoca extensions useful, please support the project
mauriziodematteis
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 12 Mar 2022, 12:26

Re: Phoca Guestbook Beta 4

Post by mauriziodematteis »

Hi,

first solution didn't work.

After debugging with plugin this error occurs:

Undefined property: PhocaguestbookViewGuestbook::$image

55: // Header
56: // - - - - - - - - - - -
57: if ( $this->params->get( 'show_page_heading' ) ) : ?>
58: <div class="page-header">
59: <h1>
60: <?php echo $this->escape($this->params->get('page_heading')); ?>
61: </h1>
62: </div>
63: <?php endif;
64: //image not supported yet -> add "image" to xml file
65: if ( @$this->image || @$this->guestbooks->description ) : ?>
66: <div class=" pgb_background guestbook-description">
67: <?php
68: /*if ( isset($this->tmpl['image']) ) {
69: echo $this->tmpl['image'];
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Guestbook Beta 4

Post by Jan »

Hi, what is the full warning message with "undefined property ..."?

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