The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
external script as a plugin / module
#10
Hi,

i have the following error inside my logfile:

PHP Parse error: syntax error, unexpected '}' in /var/www/web0/html/dev/plugins/bookingcalendar.php on line 53

Here the code of line 53: see the arrow -->

$xml = simplexml_load_file($file);
$lang = $xml->lang;
i18n_merge('bookingcalendar', $lang) || i18n_merge('bookingcalendar', 'en_US');
$LANG = $lang;
unset($xml, $file, $lang);

# hooks, filters
add_action('pages-sidebar', 'createSideMenu', array($thisfile, i18n_r('bookingcalendar/bookingcalendar')));

# file check
if(!is_dir(GSDATAOTHERPATH.'/bookingcalendar')) {
mkdir(GSDATAOTHERPATH.'/bookingcalendar');
}

#$_GET check
#if(!isset($_GET['bookingcalendar']) and !isset($_GET['settings']) and !isset($_GET['edit'])) $_GET['events'] = True;

# admin
include 'bookingcalendar/inc/bookingcalendar.php';
function c_admin() {
include 'bookingcalendar/admin.php';
---> }

what´s wrong ?
Reply


Messages In This Thread
external script as a plugin / module - by phpman - 2013-12-12, 13:51:21
RE: external script as a plugin / module - by phpman - 2013-12-17, 05:03:29



Users browsing this thread: 1 Guest(s)