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 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
Error "can't open file" when saving edited theme files
#1
We recently had this issue with all of our GetSimple sites.

If using the GetSimple admin interface to edit the theme files (i.e. template.php, home.php, etc) when the edited file is saved, the message "can't open file" is displayed, and the file is empty.

This happened with both GS 3.3.25 & 3.3.16, various themes and both php 7.0.33 & 7.4.33

I solved this issue, and wanted to post this so that it might help others.

The problem was with the depreciated function get_magic_quotes_gp

The solution is to edit line 57 in the file admim\theme-edit.php, changing the original line:

$FileContents = get_magic_quotes_gpc() ? stripslashes($_POST['content']) : $_POST['content’];

TO:

$FileContents = $_POST['content'];


Paul
Reply
#2
(2024-02-21, 10:46:06)PaulR Wrote: We recently had this issue with all of our GetSimple sites.

If using the GetSimple admin interface to edit the theme files (i.e. template.php, home.php, etc) when the edited file is saved, the message "can't open file" is displayed, and the file is empty.

This happened with both GS 3.3.25 & 3.3.16, various themes and both php 7.0.33 & 7.4.33

I solved this issue, and wanted to post this so that it might help others.

The problem was with the depreciated function get_magic_quotes_gp

The solution is to edit line 57 in the file admim\theme-edit.php, changing the original line:

$FileContents = get_magic_quotes_gpc() ? stripslashes($_POST['content']) : $_POST['content’];

TO:

$FileContents = $_POST['content'];


Paul

Thank you for sharing your info Paul.

As current development on this branch has been halted for the past 4 years with no info as to if it will resume, I would highly recommend updating to the "Community Edition" where this and many more bug & security fixes have already been applied, as well as new features and php8.x compatibility added.

On this new site, you will find links to an updated version (v3.3.19.1) and or patch for existing installs, along with a growing collection of php8.x compatible plugins.

Hope this helps.


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply




Users browsing this thread: 2 Guest(s)