Attachments 1.0.1 PHP Fatal error


User avatar
nou nou
 
Posts: 180
Joined: Thu Nov 16, 2017 4:31 am
 Mon Jul 22, 2024 8:19 pm • via Web
From the error log:

Code: Select all
[Mon Jul 22 19:59:55.409733 2024] [fcgid:warn] [pid 522310:tid 140039640884800] [remote 91.180.55.12:58408] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined method canidev\\core\\media::getInstance() in /home/<my_user>/<my_website>/<my_folder>/ext/canidev/attachments/entity/formats/base.php:343, referer: https://<my_website>/<my_folder>/viewtopic.php?t=6686
[Mon Jul 22 19:59:55.409776 2024] [fcgid:warn] [pid 522310:tid 140039640884800] [remote 91.180.55.12:58408] mod_fcgid: stderr: Stack trace:, referer: https://<my_website>/<my_folder>/viewtopic.php?t=6686
[Mon Jul 22 19:59:55.409779 2024] [fcgid:warn] [pid 522310:tid 140039640884800] [remote 91.180.55.12:58408] mod_fcgid: stderr: #0 /home/<my_user>/<my_website>/<my_folder>/ext/canidev/attachments/entity/formats/custom.php(164): canidev\\attachments\\entity\\formats\\base->get_media(false), referer: https://<my_website>/<my_folder>/viewtopic.php?t=6686
[Mon Jul 22 19:59:55.409782 2024] [fcgid:warn] [pid 522310:tid 140039640884800] [remote 91.180.55.12:58408] mod_fcgid: stderr: #1 /home/<my_user>/<my_website>/<my_folder>/ext/canidev/attachments/entity/formats/custom.php(124): canidev\\attachments\\entity\\formats\\custom->get_template_icon(), referer: https://<my_website>/<my_folder>/viewtopic.php?t=6686
[Mon Jul 22 19:59:55.409785 2024] [fcgid:warn] [pid 522310:tid 140039640884800] [remote 91.180.55.12:58408] mod_fcgid: stderr: #2 /home/<my_user>/<my_website>/<my_folder>/ext/canidev/attachments/event/listener.php(92): canidev\\attachments\\entity\\formats\\custom->render(Array), referer: https://<my_website>/<my_folder>/viewtopic.php?t=6686
[Mon Jul 22 19:59:55.409787 2024] [fcgid:warn] [pid 522310:tid 140039640884800] [remote 91.180.55.12:58408] mod_fcgid: stderr: #3 /home/<my_user>/<my_website>/<my_folder>/vendor/symfony/event-dispatcher/EventDispatcher.php(214): canidev\\attachments\\event\\listener->modify_template(Object(phpbb\\event\\data), 'core.parse_atta...', Object(phpbb\\event\\dispatcher)), referer: https://<my_website>/<my_folder>/viewtopic.php?t=6686
[Mon Jul 22 19:59:55.409792 2024] [fcgid:warn] [pid 522310:tid 140039640884800] [remote 91.180.55.12:58408] mod_fcgid: stderr: #4 /home/<my_user>/<my_website>/<my_folder>/vendor/symfony/event-dispatcher/EventDispatc in /home/<my_user>/<my_website>/<my_folder>/ext/canidev/attachments/entity/formats/base.php on line 343, referer: https://<my_website>/<my_folder>/viewtopic.php?t=6686


Not entirely sure what causes this - because in some topics this doesn't happen.
User avatar
nou nou
 
Posts: 180
Joined: Thu Nov 16, 2017 4:31 am
 Mon Jul 22, 2024 8:31 pm • via Web
This happens when trying to add a reply to the topic. Preview and Submit cause the same error.
User avatar
IvanPF
Administrator
 
Posts: 2242
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Mon Jul 22, 2024 9:58 pm • via Web
The strange thing is that "canidev\\core\\media::getInstance()" appears in the error, it should be "canidev\\core\\Media::getInstance()".
Do you have the file "Media.php" (with the first letter capitalized) in /ext/canidev/core/?
Does the custom block allow you to add images for extensions?
Anyway, I will try to do tests to find the problem.
User avatar
nou nou
 
Posts: 180
Joined: Thu Nov 16, 2017 4:31 am
 Tue Jul 23, 2024 9:33 am • via Web
Yes, first letter capitalized. The error message doesn't have the capital letter - not sure why either.

Yes, I can add images and the attachments show nicely in the topic - this just happens when trying to reply (no issues were reported with version 1.0.0 which I've used for quite a while)...

Thank you!

Who is online

Users browsing this forum: No registered users and 0 guests