XoopsModules25x / news

With this XOOPS module, you can create an unlimited number of news on your site. You can create all the articles you want and attach them to topics.
4 stars 11 forks source link

Internal server error on Admin About tab #37

Closed jorgenqv closed 1 year ago

jorgenqv commented 1 year ago

XOOPS Version | XOOPS 2.5.11-Beta2 from Master latest update sept 28, 2022 PHP Version | 8.0.24 MySQL Version | 10.3.36-MariaDB-1:10.3.36+maria~ubu2004 Server API | cgi-fcgi OS | Linux fsockopen | On post_max_size | 256M max_input_time | 60 output_buffering |
max_execution_time | 300 memory_limit | 2147483648 file_uploads | On upload_max_filesize | 256M

Default theme

News module version 1.72.0

When going to Admin in the News Admin backend and clicking on About tab I get

A problem has occurred on our server! Page is currently unavailable We are working on a fix Please come back soon ...

Error : TypeError: mktime(): Argument #4 ($month) must be of type ?int, string given Backtrace:

Errors Warning: Undefined array key 2 in file /Frameworks/moduleclasses/moduleadmin/moduleadmin.php line 506 Error: TypeError: mktime(): Argument #4 ($month) must be of type ?int, string given in file /Frameworks/moduleclasses/moduleadmin/moduleadmin.php line 506

montuy337513 commented 1 year ago

bug in line 31 of the xoops_version.php file replace $modversion['release_date'] = '2022/02-20';

by

$modversion['release_date'] = '2022/02/20';

mambax7 commented 1 year ago

Fixed in https://github.com/XoopsModules25x/news/pull/38/