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 1121 build_postbit
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 1121 build_postbit
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 861 postParser->parse_message
/showthread.php 1121 build_postbit
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 1121 build_postbit
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 1121 build_postbit
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 861 postParser->parse_message
/showthread.php 1121 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
#2
What version of GetSimple are you using? Because I thought your third error had been fixed in later versions.

As for the install and setup files, you will want to delete those for security reasons. I don’t know why some servers don’t allow them to be deleted by the script, I think we will have to display a warning when they can’t be removed automatically.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
Zegnåt Wrote:What version of GetSimple are you using? Because I thought your third error had been fixed in later versions.

As for the install and setup files, you will want to delete those for security reasons. I don’t know why some servers don’t allow them to be deleted by the script, I think we will have to display a warning when they can’t be removed automatically.

Thanks for the tips, about the debug mode. I am using the latest 2.01 version I downloaded like 5 days ago.
Reply
#4
Ths must have been a patch in the yet-to-be-released 2.02 - I see it updated in the SVN
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply




Users browsing this thread: 1 Guest(s)