Fatal Error with Gwolle Guestbook
-
Hello,
I’m having an issue with my guestbook. I’m using GWOLLE_GB and The ‘Name’ field is marked as required, however when it is not put in, and the message is submitted, I get the following Fatal Error:
Fatal error: Cannot redeclare gwolle_gb_formatguestbooklink() (previously declared in /…./wp-content/plugins/gwolle-gb/frontend/gbLinkFormat.func.php:2) in /…./wp-content/plugins/gwolle-gb/frontend/gbLinkFormat.func.php on line 23
the file ‘gbLinkFormat.func.php’ has the following code
<?php function gwolle_gb_formatGuestbookLink($gb_link) { /* ** This function tries to format the given $link into an address ** that can be used by the guestbook. */ $lastCharPos = strlen($gb_link) - 1; if ($gb_link[$lastCharPos] == '/') { // The last char of the guestbook link is a slash. Only append a '?'. $gb_link .= '?'; } elseif (strpos($gb_link,'?') > -1) { // The '?' has already been entered. Append '&', if not already the last char. if ($gb_link[$lastCharPos] != '&') { $gb_link .= '&'; } } elseif (!strpos($gb_link,'?') && $gb_link[$lastCharPos] != '/') { // No '?' and no '/' entered. Append '/?'. $gb_link .= '/?'; } return $gb_link; } ?>
Can anyone help
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Fatal Error with Gwolle Guestbook’ is closed to new replies.