Geeklog-Core / geeklog

Geeklog - The Secure CMS.
https://www.geeklog.net
25 stars 19 forks source link

Geeklog Filemanager - PHP 8+ Issues - Config Value not Converted Properly #1140

Closed ramosgt closed 1 year ago

ramosgt commented 1 year ago

I'm having problems uploading images with the filemanager, I've done:

bug2

  1. Check directory permissions
  2. Check size and type of files

I am using ubuntu server 22.04 with php8.1

I can, create folders, copy the existing images on the server to another folder using filemanager, but I can't upload new ones, I have enabled debug and all I can see is the following:

Server error. A PHP error has occurred: This is being displayed as "Root Debugging" is enabled in your Geeklog configuration.

If this is a production website you must disable this option once you have resolved any issues you are investigating.

E_DEPRECATED(8192) - Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice @ /home/ramos/VirtualHost/contraste/system/vendor/illuminate/container/Container.php line 1159 Call Stack

Additionally, I tried to enter geeklog.net to use the forum, but after entering the data the site shows up with an error.

bug

eSilverStrike commented 1 year ago

Additionally, I tried to enter geeklog.net to use the forum, but after entering the data the site shows up with an error.

I see this error in the error log. The error log points to a missing language variable in the forum for non english languages. I have updated the other languages in the forum. Is it fixed?

Also, I am not sure what you mean in the quoted text above. Where you initially able to access Geeklog.net or did it always error out? What data did you enter?

Also where you logged in and what language are you using?

Thanks

ramosgt commented 1 year ago

Login from here:

https://www.geeklog.net/users.php

I'm not sure if I change the language to Spanish, my username is alb3rt

eSilverStrike commented 1 year ago

@ramosgt The geeklog.net issue should be fixed now. Found some other forum language variables that were not defined for other languages.

eSilverStrike commented 1 year ago

BUG Found in File Manager Config

[filemanager_upload_file_size_limit] Config Option says the value is in MIB and by default is set to 16. When you attempt to upload it says the max file size is only 16 bytes so you need to change this value to 16000000 to get 16MiB.

Need to fix this so the value is converted correctly when the File Manager looks at the config option to determine the upload file size.

ramosgt commented 1 year ago

I made sure to define the size, I made sure the permissions. But it couldn't find the error since it doesn't give me more information, it just shows that the file could not be uploaded, I check the log of both geeklog and apache and I can't see anything.

eSilverStrike commented 1 year ago

Just checked File Manager works in PHP 7.x

It seems to have some issues in PHP 8.0 like uploads not working (but the file explorer seems okay)

In PHP 8.1 the File Explorer doesn't even load (if you have error_reporting set to -1).

This will be fixed in Geeklog 2.2.3

mystralkk commented 1 year ago

Sorry, this is my mistake. Fixed with change set #bdf2a630a4f970fce7aea2d81e33f003343c17ca