Php 8 CMSimple xh
Posted: Wed Jan 06, 2021 8:34 am
boilerplate error with php 8 cannot open name.htm
any solution?
any solution?
--> finally results in a server error 500
Hmm, that's not much.
DEPRECATED: Methods with the same name as their class will not be constructors in a future version of PHP; Boilerplate_Model has a deprecated constructor
D:\xampp\htdocs\cmsimplexh174\plugins\boilerplate\classes\model.php:25
We have to hurry up with the PHP 8 compatibility. Question is which version to target: CMSimple_XH 1.8? If so, we should probably not introduce a lot of new features, but rather aim for PHP 8 compatibility.
And that would be a fatal error with PHP 8. Quick fix: replace this line with:lck wrote: ↑Fri Jan 08, 2021 12:05 pm* Boilerplate_XH runs under PHP 7.4.8, only a deprecated notice:DEPRECATED: Methods with the same name as their class will not be constructors in a future version of PHP; Boilerplate_Model has a deprecated constructor
D:\xampp\htdocs\cmsimplexh174\plugins\boilerplate\classes\model.php:25
Code: Select all
function __construct($dataFolder)
Gut, behebt das Problem mit der Textbaustein-Datei. Aber, da gibt es noch ein anderes Problem beim Aufruf von Plugins > Boilerplate bei der Systemprüfung:cmb wrote: ↑Fri Jan 08, 2021 6:12 pmAnd that would be a fatal error with PHP 8. Quick fix: replace this line with:lck wrote: ↑Fri Jan 08, 2021 12:05 pm* Boilerplate_XH runs under PHP 7.4.8, only a deprecated notice:DEPRECATED: Methods with the same name as their class will not be constructors in a future version of PHP; Boilerplate_Model has a deprecated constructor
D:\xampp\htdocs\cmsimplexh174\plugins\boilerplate\classes\model.php:25Code: Select all
function __construct($dataFolder)
Lösung, in admin.php diese Zeile ersetzen durchDebug-Mode wrote:Uncaught Error: Call to undefined function get_magic_quotes_runtime() in D:\xampp\htdocs\cmsimplexh174_test-php8\plugins\boilerplate\admin.php:137
Stack trace:
#0 D:\xampp\htdocs\cmsimplexh174_test-php8\plugins\boilerplate\admin.php(342): Boilerplate_info()
#1 D:\xampp\htdocs\cmsimplexh174_test-php8\cmsimple\cms.php(1123): include('D:\\xampp\\htdocs...')
#2 D:\xampp\htdocs\cmsimplexh174_test-php8\index.php(6): include('D:\\xampp\\htdocs...')
#3 {main}
thrown in D:\xampp\htdocs\cmsimplexh174_test-php8\plugins\boilerplate\admin.php on line 137
Code: Select all
= !ini_set('magic_quotes_runtime', 0) ? 'ok' : 'fail';
+1