HELP NEEDED Blank page after updating from 1.01 to 1.02


no_avatar
Justitius
 
Posts: 6
Joined: Sat Sep 16, 2023 9:42 am
 Sat Jan 06, 2024 9:49 am • via Web
I have phpBB 3.3.10 and was trying to update phpBB to 3.3.11 but as suggested, I tried to update my extensions (2) first which I did successfuly (1), but when I tried to update your extension "Reactions" I initially only copied "reactions" folder and there was an error from phpBB admin dashboard that I also need to update the "core" folder; which I did, and when I tried to enable the extension nothing happened and I refreshed the page and now I can only see blank page... and no way to get back either to ACP or Forum...

Any suggestions as now the forum is not working and I dont even see where I could take a look at my log...

P.s.
Trying to re-upload the previous version also didn't help... still blank page. I can still access the cached page where it says the extension was successfully enabled (below) but that is the only thing I can do, if I try to click anywhere else on the ACP, I get blank page.
reactions-enabled.jpg


P.P.s
I am checking what is going on with mod_security, but must do this through my web host as I cannot controll directly how the mod_secure behaves... But I did saw in the webhost log problems with mod_secure.
User avatar
IvanPF
Administrator
 
Posts: 1996
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Sun Jan 07, 2024 11:25 am • via Web
Hi,

try adding this line to the "config.php" file, in the main forum folder. If your hosting allows it, instead of a blank page the error in question will appear, and then we can review what happened, since a blank page can be many things.
Code: Select all
@ini_set('display_errors', 'On');
no_avatar
Justitius
 
Posts: 6
Joined: Sat Sep 16, 2023 9:42 am
 Sun Jan 07, 2024 1:00 pm • via Web
Thank you, here is the "reply" from now visible page:


Fatal error: Uncaught Error: Class "canidev\core\Media" not found in /data/sites/web/innergardenorg6862/www/forum/ext/canidev/reactions/libraries/reaction.php:36 Stack trace: #0 /data/sites/web/innergardenorg6862/www/forum/ext/canidev/reactions/libraries/reaction_manager.php(430): canidev\reactions\libraries\reaction->__construct() #1 /data/sites/web/innergardenorg6862/www/forum/ext/canidev/reactions/libraries/reaction_manager.php(68): canidev\reactions\libraries\reaction_manager->obtain_reactions() #2 /data/sites/web/innergardenorg6862/www/forum/cache/production/container_4335734bbdd20f586549a504dff5f80c.php(1452): canidev\reactions\libraries\reaction_manager->__construct() #3 /data/sites/web/innergardenorg6862/www/forum/cache/production/container_4335734bbdd20f586549a504dff5f80c.php(1442): phpbb_cache_container->getCanidev_Reactions_ManagerService() #4 /data/sites/web/innergardenorg6862/www/forum/cache/production/container_4335734bbdd20f586549a504dff5f80c.php(2553): phpbb_cache_container->getCanidev_Reactions_ListenerService() #5 /data/sites/web/innergardenorg6862/www/forum/vendor/symfony/event-dispatcher/EventDispatcher.php(231): phpbb_cache_container->{closure}() #6 /data/sites/web/innergardenorg6862/www/forum/vendor/symfony/event-dispatcher/EventDispatcher.php(61): Symfony\Component\EventDispatcher\EventDispatcher->sortListeners() #7 /data/sites/web/innergardenorg6862/www/forum/vendor/symfony/event-dispatcher/EventDispatcher.php(43): Symfony\Component\EventDispatcher\EventDispatcher->getListeners() #8 /data/sites/web/innergardenorg6862/www/forum/phpbb/event/dispatcher.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #9 /data/sites/web/innergardenorg6862/www/forum/phpbb/event/dispatcher.php(46): phpbb\event\dispatcher->dispatch() #10 /data/sites/web/innergardenorg6862/www/forum/phpbb/user.php(222): phpbb\event\dispatcher->trigger_event() #11 /data/sites/web/innergardenorg6862/www/forum/index.php(29): phpbb\user->setup() #12 {main} thrown in /data/sites/web/innergardenorg6862/www/forum/ext/canidev/reactions/libraries/reaction.php on line 3
User avatar
IvanPF
Administrator
 
Posts: 1996
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Sun Jan 07, 2024 1:04 pm • via Web
From the error you get, it seems that you are missing a file
Remove the "/ext/canidev/core" folder and upload again this folder from the new package
no_avatar
Justitius
 
Posts: 6
Joined: Sat Sep 16, 2023 9:42 am
 Sun Jan 07, 2024 1:20 pm • via Web
I did created Media folder in the /canidev/core (/canidev/core/Media) as well as lowercase (/canidev/core/media) as I saw this Uppercase was lowercase in 1.01 version that I had (from backup and found on canidev/reactions/libraries/reaction.php).

But with no luck... still error stays the same, even with created folders Media/media in canidev/core

Is there a way to disable only this extension until is resolved? As now the whole Forum has error because of it. Thanks!
Last edited by Justitius on Sun Jan 07, 2024 1:25 pm, edited 1 time in total.
User avatar
IvanPF
Administrator
 
Posts: 1996
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Sun Jan 07, 2024 1:24 pm • via Web
"Media" is a file, not a folder. The file Media.php must exist in the core folder (the first letter in uppercase is important)
That's why I tell you to delete the entire "core" folder and upload it again, with new files
no_avatar
Justitius
 
Posts: 6
Joined: Sat Sep 16, 2023 9:42 am
 Sun Jan 07, 2024 1:29 pm • via Web
Ok, I see canidev/core/media.php, but not Media.php as defined in reactions.php v1.0.2

I have renamed media.php to Media.php and it works now. Just so you know if others would have the same problem, it was the uppercase Media.php

Thank you.
no_avatar
Justitius
 
Posts: 6
Joined: Sat Sep 16, 2023 9:42 am
 Sun Jan 07, 2024 1:37 pm • via Web
Ok... I can enter Forum and ACP, but if I leave the extension Enabled, if I click on any post it would give this error:


Fatal error: Uncaught Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "canidev_reactions_controller" as such route does not exist. in /data/sites/web/innergardenorg6862/www/forum/cache/production/url_generator.php:45 Stack trace: #0 /data/sites/web/innergardenorg6862/www/forum/phpbb/routing/router.php(168): phpbb_url_generator->generate() #1 /data/sites/web/innergardenorg6862/www/forum/phpbb/routing/helper.php(148): phpbb\routing\router->generate() #2 /data/sites/web/innergardenorg6862/www/forum/ext/canidev/reactions/libraries/reaction_manager.php(330): phpbb\routing\helper->route() #3 /data/sites/web/innergardenorg6862/www/forum/ext/canidev/reactions/event/listener.php(390): canidev\reactions\libraries\reaction_manager->get_user_link() #4 /data/sites/web/innergardenorg6862/www/forum/vendor/symfony/event-dispatcher/EventDispatcher.php(214): canidev\reactions\event\listener->viewtopic_modify_row() #5 /data/sites/web/innergardenorg6862/www/forum/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() #6 /data/sites/web/innergardenorg6862/www/forum/phpbb/event/dispatcher.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #7 /data/sites/web/innergardenorg6862/www/forum/phpbb/event/dispatcher.php(46): phpbb\event\dispatcher->dispatch() #8 /data/sites/web/innergardenorg6862/www/forum/viewtopic.php(2155): phpbb\event\dispatcher->trigger_event() #9 {main} thrown in /data/sites/web/innergardenorg6862/www/forum/cache/production/url_generator.php on line 45
User avatar
IvanPF
Administrator
 
Posts: 1996
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Sun Jan 07, 2024 1:40 pm • via Web
I've been checking it and I've seen an error with the download system on this website. That's why the package was downloaded incorrectly.
If you have other problems, download the extension again and upload the files again.
The core should include the file "Media.php" with the letter capitalized by default, as well as other files that have changed

Apologies for the inconvenience
User avatar
IvanPF
Administrator
 
Posts: 1996
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Sun Jan 07, 2024 1:42 pm • via Web
For the last error, try clear the cache from the acp
Next

Who is online

Users browsing this forum: No registered users and 0 guests