Lesterhuis-Training-en-Consultancy / moodle-block-user_favorites

Moodle plugin - marking pages as favorites
GNU General Public License v3.0
1 stars 4 forks source link

Moodle 4.0 - PHP 8 error #11

Closed gemguardian closed 1 year ago

gemguardian commented 2 years ago

Error reported on Moodle.org: https://moodle.org/plugins/block_user_favorites

Moodle 4, PHP8

Debug info: Error code: generalexceptionmessage Stack trace:

line 81 of /blocks/user_bookmarks/block_user_bookmarks.php: Error thrown line 478 of /blocks/moodleblock.class.php: call to block_user_bookmarks->specialization() line 2091 of /lib/blocklib.php: call to block_base->_load_instance() line 1097 of /lib/blocklib.php: call to block_instance() line 1258 of /lib/blocklib.php: call to block_manager->create_block_instances() line 1145 of /lib/blocklib.php: call to block_manager->ensure_instances_exist() line 1649 of /lib/pagelib.php: call to block_manager->create_all_block_instances() line 1110 of /lib/pagelib.php: call to moodle_page->starting_output() line 1391 of /lib/outputrenderers.php: call to moodle_page->set_state() line 121 of /index.php: call to core_renderer->header()

I have removed the User Bookmarks block from all tabs and now it is fine. It seems that this is the problem creating the error.

Seahawk59 commented 1 year ago

I see this error is reported. Will then wait for 4.1 updated version. Thanks.

gemguardian commented 1 year ago

@luukverhoeven Can you check this please? I just did a test on my Moodle 4.1 / Boost and I did not get the PHP error with PHP 8.0 - Maybe it was an early moodle issue. But just to be sure.

gemguardian commented 1 year ago
Comment from Freshservice:
Freshservice: 153 linked successfully.
luukverhoeven commented 1 year ago

@Seahawk59 We were able to successfully test the plugin on M4.1 / PHP8.0 without any issues. However, in order to provide more detailed information and assist in resolving the reported issue, we kindly request that you provide additional details on how to reproduce the issue.

Can you provide step-by-step instructions, including any relevant error messages or screenshots, so that we can accurately replicate the issue and work towards a solution?

image

gemguardian commented 1 year ago

closing issue as not reproducable as well no respondse. Please reopen if necessary.