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
Phoca Guestbook Beta 4
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Guestbook Beta 4
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 12 Mar 2022, 12:26
Re: Phoca Guestbook Beta 4
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
no message on the screen.
No message in front end and no entry in backend.
Posting in ACL allowed für guests.
Regards Maurizio
-
- Phoca Newbie
- Posts: 4
- Joined: 12 Mar 2022, 12:26
Re: Phoca Guestbook Beta 4
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
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
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Guestbook Beta 4
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:
TO:
and let me know if this helped.
Thank you, Jan
Jan
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
Code: Select all
$filterTags = [];//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
$filterAttrs = [];//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
Thank you, Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 12 Mar 2022, 12:26
Re: Phoca Guestbook Beta 4
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'];
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'];
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Guestbook Beta 4
Hi, what is the full warning message with "undefined property ..."?
Jan
Jan
If you find Phoca extensions useful, please support the project