Welcome to Geeklog, Anonymous Saturday, February 22 2025 @ 10:24 am EST
Geeklog Forums
Geeklog v2.2.2
TJ
Anonymous
There seem to be LOADS of errors using the latest version of Geeklog v2.2.2.
We have found that using PHP V7.1, kind of, works fine with Geeklog, after that it starts to become very buggy. It is virtually unuseable using PHP 8.
We have found that using PHP V7.1, kind of, works fine with Geeklog, after that it starts to become very buggy. It is virtually unuseable using PHP 8.
4
1
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1474
Location:Canada
I've been using Geeklog with the latest version of PHP 8.1 without any issues (Geeklog doesn't officially support PHP 8.2 or higher yet). Under Tools can you run the Environment Check and see what it says?
What does the error.log file show?
One of the Geeklog Core Developers.
What does the error.log file show?
One of the Geeklog Core Developers.
2
3
Quote
TJ
Anonymous
Hi,
Hopefully this will work here. I was going to upload a txt file to make life easier, but uploads are not allowed so let's try this.
A NEW INSTALL
Geeklog v2.2.2
Database Settings
MySQL Version 8.0.41 4.1.2+ Geeklog requires MySQL version 4.1.2 or newer (MySQL 5 recommended).
PHP Settings
PHP Version 8.1.31 5.6.4+ Geeklog requires PHP version 5.6.4 or newer.
open_basedir Off Off If open_basedir restrictions are enabled on your site, it may cause permission problems during the install. The File System Check below should point out any issues.
memory_limit 128M 48M It is recommended that you have at least 48M of memory enabled on your site.
file_uploads On On Many features of Geeklog require the ability to upload files, this should be enabled.
upload_max_filesize 128M 8M Geeklog allows you to upload plugins, images, and files. You should allow at least 8M for the upload size.
post_max_size 128M 8M Geeklog allows you to upload plugins, images, and files. You should allow at least 8M for the maximum post size.
max_execution_time 60 secs 30 secs Geeklog recommends the PHP default value of 30 seconds as a minimum, but plugin uploads and other operations may take longer than this depending upon your hosting environment. You may be able to increase this by modifying the value of max_execution_time in your php.ini file.
Libraries
Fileinfo Library OK The Fileinfo library is loaded. This library is required when uploading images for articles. It is used to get the mime type of the file being uploaded when creating a thumbnail of the image.
OpenSSL Library OK The OpenSSL library is loaded. This library is required if you wish to use with Geeklog the OAuth user login method or the SMTPS protocol for sending mail.
Graphics Library Skipped No graphic libraries are set to be used by Geeklog.
Directory / File Permissions
Directory Permissions OK
File Permissions OK
ERRORS!
PHP 8.1.31
ADDING AN ARTICLE
If permissions are not set to all then an error occurs.
(This text is only displayed to users in the group 'Root')
E_WARNING(2) - Undefined array key "perm_anon" @ /home/path/private/system/classes/article.class.php line 2315
Call Stack
# Function File Line
1 _loadBasics /home/path/private/system/classes/article.class.php 920
2 loadFromArgsArray /home/path/private/system/lib-article.php 2691
3 service_submit_story /home/path/private/system/lib-plugins.php 3253
4 PLG_invokeService /home/path/website.com/admin/article.php 962
5 submitstory /home/path/website.com/admin/article.php 1017
SAVING AN ARTICLE AS A DRAFT
PHP 8.1.31
(This text is only displayed to users in the group 'Root')
E_WARNING(2) - Trying to access array offset on false @ /home/path/private/system/lib-article.php line 1198
Call Stack
# Function File Line
1 STORY_updateLastArticlePublished /home/path/private/system/lib-article.php 2895
2 service_submit_story /home/path/private/system/lib-plugins.php 3253
3 PLG_invokeService /home/path/website.com/admin/article.php 962
4 submitstory /home/path/website.com/admin/article.php 1017
WHEN ARTICLE IS SET TO POST MODE: Plain Old Text
PHP 8.1.31 and PHP 7.1.33
The article cannot be saved.
WHEN ARTICLE IS SET TO POST MODE: HTML Formatted
PHP 8.1.31 and PHP 7.1.33
The article can be saved, but the layout of Allowed HTML Tags, and the rest of the page, is not displayed correctly.
This also happens with comments in Post Mode: HTML Formatted.
DELETING A POLL
PHP 8.1.31
(This text is only displayed to users in the group 'Root')
E_SYNTAX(0) - Call to undefined function CMT_deleteComment() @ /home/path/website.com/admin/plugins/polls/index.php line 642
Call Stack
# Function File Line
1 COM_handleException
DELETING A POLL
PHP 7.1.33
(This text is only displayed to users in the group 'Root')
E_SYNTAX(0) - Call to undefined function CMT_deleteComment() @ /home/path/website.com/admin/plugins/polls/index.php line 642
Call Stack
# Function File Line
1 COM_handleException
array(1) {
[0]=>
array(4) {
["file"]=>
string(65) "/home/path/website.com/admin/plugins/polls/index.php"
["line"]=>
int(707)
["function"]=>
string(10) "deletePoll"
["args"]=>
array(1) {
[0]=>
string(18) "geeklogfeaturepoll"
}
}
}
UPLOADING A PLUGIN
PHP 8.1.31
(This text is only displayed to users in the group 'Root')
E_WARNING(2) - mkdir(): File exists @ /home/path/private/system/vendor/splitbrain/php-archive/src/Zip.php line 124
Call Stack
# Function File Line
1 mkdir /home/path/private/system/vendor/splitbrain/php-archive/src/Zip.php 124
2 extract /home/path/private/system/classes/unpacker.class.php 369
3 unpack_zip /home/path/private/system/classes/unpacker.class.php 347
4 unpack /home/path/website.com/admin/plugins.php 799
5 plugin_upload /home/path/website.com/admin/plugins.php 1432
UPLOADING A PLUGIN
PHP 7.1.33
Uploading a plugin or adding a plugin works fine with PHP 7.1.33.
MANUALLY INSTALLING A PLUGIN
PHP 8.1.31
(This text is only displayed to users in the group 'Root')
E_SYNTAX(0) - JSMin: Unterminated String at byte 1005: ', @ /home/path/private/system/vendor/mrclay/jsmin-php/src/JSMin/JSMin.php line 214
Call Stack
# Function File Line
1 COM_handleException
WEBSITE IS NOT ACCESSIBLE AFTER REMOVING PLUGIN
Had to remove the plugin files and remove the entry in sql Table: gl_plugins to access the website again.
ANOTHER ERROR
[04-Feb-2025 22:58:15 Europe/London] PHP Deprecated: array_last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /home/path/private/system/vendor/illuminate/support/helpers.php on line 183
Hope this helps with future development.
Hopefully this will work here. I was going to upload a txt file to make life easier, but uploads are not allowed so let's try this.
A NEW INSTALL
Geeklog v2.2.2
Database Settings
MySQL Version 8.0.41 4.1.2+ Geeklog requires MySQL version 4.1.2 or newer (MySQL 5 recommended).
PHP Settings
PHP Version 8.1.31 5.6.4+ Geeklog requires PHP version 5.6.4 or newer.
open_basedir Off Off If open_basedir restrictions are enabled on your site, it may cause permission problems during the install. The File System Check below should point out any issues.
memory_limit 128M 48M It is recommended that you have at least 48M of memory enabled on your site.
file_uploads On On Many features of Geeklog require the ability to upload files, this should be enabled.
upload_max_filesize 128M 8M Geeklog allows you to upload plugins, images, and files. You should allow at least 8M for the upload size.
post_max_size 128M 8M Geeklog allows you to upload plugins, images, and files. You should allow at least 8M for the maximum post size.
max_execution_time 60 secs 30 secs Geeklog recommends the PHP default value of 30 seconds as a minimum, but plugin uploads and other operations may take longer than this depending upon your hosting environment. You may be able to increase this by modifying the value of max_execution_time in your php.ini file.
Libraries
Fileinfo Library OK The Fileinfo library is loaded. This library is required when uploading images for articles. It is used to get the mime type of the file being uploaded when creating a thumbnail of the image.
OpenSSL Library OK The OpenSSL library is loaded. This library is required if you wish to use with Geeklog the OAuth user login method or the SMTPS protocol for sending mail.
Graphics Library Skipped No graphic libraries are set to be used by Geeklog.
Directory / File Permissions
Directory Permissions OK
File Permissions OK
ERRORS!
PHP 8.1.31
ADDING AN ARTICLE
If permissions are not set to all then an error occurs.
Text Formatted Code
A PHP error has occurred:(This text is only displayed to users in the group 'Root')
E_WARNING(2) - Undefined array key "perm_anon" @ /home/path/private/system/classes/article.class.php line 2315
Call Stack
# Function File Line
1 _loadBasics /home/path/private/system/classes/article.class.php 920
2 loadFromArgsArray /home/path/private/system/lib-article.php 2691
3 service_submit_story /home/path/private/system/lib-plugins.php 3253
4 PLG_invokeService /home/path/website.com/admin/article.php 962
5 submitstory /home/path/website.com/admin/article.php 1017
SAVING AN ARTICLE AS A DRAFT
PHP 8.1.31
Text Formatted Code
A PHP error has occurred:(This text is only displayed to users in the group 'Root')
E_WARNING(2) - Trying to access array offset on false @ /home/path/private/system/lib-article.php line 1198
Call Stack
# Function File Line
1 STORY_updateLastArticlePublished /home/path/private/system/lib-article.php 2895
2 service_submit_story /home/path/private/system/lib-plugins.php 3253
3 PLG_invokeService /home/path/website.com/admin/article.php 962
4 submitstory /home/path/website.com/admin/article.php 1017
WHEN ARTICLE IS SET TO POST MODE: Plain Old Text
PHP 8.1.31 and PHP 7.1.33
The article cannot be saved.
WHEN ARTICLE IS SET TO POST MODE: HTML Formatted
PHP 8.1.31 and PHP 7.1.33
The article can be saved, but the layout of Allowed HTML Tags, and the rest of the page, is not displayed correctly.
This also happens with comments in Post Mode: HTML Formatted.
DELETING A POLL
PHP 8.1.31
Text Formatted Code
A PHP error has occurred:(This text is only displayed to users in the group 'Root')
E_SYNTAX(0) - Call to undefined function CMT_deleteComment() @ /home/path/website.com/admin/plugins/polls/index.php line 642
Call Stack
# Function File Line
1 COM_handleException
DELETING A POLL
PHP 7.1.33
Text Formatted Code
A PHP error has occurred:(This text is only displayed to users in the group 'Root')
E_SYNTAX(0) - Call to undefined function CMT_deleteComment() @ /home/path/website.com/admin/plugins/polls/index.php line 642
Call Stack
# Function File Line
1 COM_handleException
array(1) {
[0]=>
array(4) {
["file"]=>
string(65) "/home/path/website.com/admin/plugins/polls/index.php"
["line"]=>
int(707)
["function"]=>
string(10) "deletePoll"
["args"]=>
array(1) {
[0]=>
string(18) "geeklogfeaturepoll"
}
}
}
UPLOADING A PLUGIN
PHP 8.1.31
Text Formatted Code
A PHP error has occurred:(This text is only displayed to users in the group 'Root')
E_WARNING(2) - mkdir(): File exists @ /home/path/private/system/vendor/splitbrain/php-archive/src/Zip.php line 124
Call Stack
# Function File Line
1 mkdir /home/path/private/system/vendor/splitbrain/php-archive/src/Zip.php 124
2 extract /home/path/private/system/classes/unpacker.class.php 369
3 unpack_zip /home/path/private/system/classes/unpacker.class.php 347
4 unpack /home/path/website.com/admin/plugins.php 799
5 plugin_upload /home/path/website.com/admin/plugins.php 1432
UPLOADING A PLUGIN
PHP 7.1.33
Uploading a plugin or adding a plugin works fine with PHP 7.1.33.
MANUALLY INSTALLING A PLUGIN
PHP 8.1.31
Text Formatted Code
A PHP error has occurred:(This text is only displayed to users in the group 'Root')
E_SYNTAX(0) - JSMin: Unterminated String at byte 1005: ', @ /home/path/private/system/vendor/mrclay/jsmin-php/src/JSMin/JSMin.php line 214
Call Stack
# Function File Line
1 COM_handleException
WEBSITE IS NOT ACCESSIBLE AFTER REMOVING PLUGIN
Had to remove the plugin files and remove the entry in sql Table: gl_plugins to access the website again.
ANOTHER ERROR
[04-Feb-2025 22:58:15 Europe/London] PHP Deprecated: array_last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /home/path/private/system/vendor/illuminate/support/helpers.php on line 183
Hope this helps with future development.
2
2
Quote
TJ
Anonymous
Quote by: Anonymous
WHEN ARTICLE IS SET TO POST MODE: Plain Old Text
PHP 8.1.31 and PHP 7.1.33
The article cannot be saved.
WHEN ARTICLE IS SET TO POST MODE: HTML Formatted
PHP 8.1.31 and PHP 7.1.33
The article can be saved, but the layout of Allowed HTML Tags, and the rest of the page, is not displayed correctly.
This also happens with comments in Post Mode: HTML Formatted.
This has been resolved by switching off Threat Protection in Anti-Virus sotfware, but other errors remain.
3
3
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1474
Location:Canada
Thanks for the details.
I have confirmed the Poll issue and we already have the Article issue regarding the permissions in our tracker to be fixed.
I haven't confirmed the Upload plugin issue yet.
I haven't had manual plugin install issues though. I am wondering if this depends on the plugin itself (maybe it has a bug that Geeklog can't handle). What plugin where you trying to install via upload and manually?
By the way our Github issue tracker is here:
https://github.com/Geeklog-Core/geeklog/issues
One of the Geeklog Core Developers.
I have confirmed the Poll issue and we already have the Article issue regarding the permissions in our tracker to be fixed.
I haven't confirmed the Upload plugin issue yet.
I haven't had manual plugin install issues though. I am wondering if this depends on the plugin itself (maybe it has a bug that Geeklog can't handle). What plugin where you trying to install via upload and manually?
By the way our Github issue tracker is here:
https://github.com/Geeklog-Core/geeklog/issues
One of the Geeklog Core Developers.
4
3
Quote
All times are EST. The time is now 10:24 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content