Page 1 of 1
Phoca Guestbook Beta 4
Posted: 12 Mar 2022, 12:32
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
Re: Phoca Guestbook Beta 4
Posted: 15 Mar 2022, 13:40
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
Re: Phoca Guestbook Beta 4
Posted: 17 Mar 2022, 17:49
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
Re: Phoca Guestbook Beta 4
Posted: 17 Mar 2022, 17:56
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
Re: Phoca Guestbook Beta 4
Posted: 18 Mar 2022, 13:36
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
Re: Phoca Guestbook Beta 4
Posted: 19 Mar 2022, 22:03
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'];
Re: Phoca Guestbook Beta 4
Posted: 25 Mar 2022, 01:32
by Jan
Hi, what is the full warning message with "undefined property ..."?
Jan