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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Here is the "exec PHP" plugin fix
#1
I have installed exec PHP plugin but it didn't work because the content block becomes blank. After turning the Debug on, found out about these errors:

ERROR 1

Warning: unlink(/var/www/getsimple/admin/install.php) [function.unlink]: Permission denied in /var/www/getsimple/admin/inc/common.php on line 135

ERROR 2

Warning: unlink(/var/www/getsimple/admin/setup.php) [function.unlink]: Permission denied in /var/www/getsimple/admin/inc/common.php on line 140

ERROR 3

Warning: call_user_func_array() expects parameter 2 to be array, string given in /var/www/getsimple/admin/inc/plugin_functions.php on line 139


SOLUTION

For the errors 1 and 2, all you have to do is deleting the files

admin/install.php
admin/setup.php

or rename them to something else like

admin/install.php.off
admin/setup.php.off


For error 3, you have to:

### 1. Open file

admin/inc/plugin_functions.php


### 2. Around line 139 find

$data = call_user_func_array($filter['function'], $data);


### 3. Replace with

$data = call_user_func_array($filter['function'], array($data));



It's because the function call_user_func_array() requires the second parameter to be an array as stated at

http://www.php.net/manual/en/function.ca...-array.php


Hope it helps.



Thanks for this great simple lightning fast CMS, this is probably the only CMS that I could grasp and use within a minute!
Reply


Messages In This Thread
Here is the "exec PHP" plugin fix - by phpsns - 2010-08-03, 14:19:17
Here is the "exec PHP" plugin fix - by phpsns - 2010-08-04, 03:03:36
Here is the "exec PHP" plugin fix - by ccagle8 - 2010-08-10, 10:55:02



Users browsing this thread: 1 Guest(s)