cBB Attachments


Due to a lack of free time, both support on this forum and extension development are currently limited.
All bugs are noted and saved for fixes, even if there are no replies to the posts.
Normal activity will resume as soon as possible.
no_avatar
Malmak
 
Posts: 1
Joined: Fri Feb 04, 2022 5:35 am
 Sun Jun 09, 2024 3:27 am • via Web
Hey. Hey,
pdf preview not showing in private messages

[phpBB Debug] PHP Warning: in file [ROOT]/ext/canidev/attachments/controller/main.php on line 200: Undefined variable $user_data
[phpBB Debug] PHP Warning: in file [ROOT]/ext/canidev/attachments/controller/main.php on line 200: Trying to access array offset on value of type null

Thank you
User avatar
IvanPF
Administrator
 
Posts: 2265
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Sun Jun 09, 2024 8:46 am • via Web
Hi,

This will be fixed in the next version.
Thanks for the report
no_avatar
spinecki
 
Posts: 7
Joined: Mon Mar 18, 2019 7:27 pm
 Mon Jul 01, 2024 7:11 pm • via Android
Does pdf preview not work on mobile? Works normally on desktop, but on mobile it shows just a window with "preview" button in the middle, which allows to download file and open in locally.
User avatar
IvanPF
Administrator
 
Posts: 2265
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Sun Jul 07, 2024 9:58 am • via Web
Most mobile browsers do not support inline PDF viewing.
In future versions I will try to provide support for this.
no_avatar
spinecki
 
Posts: 7
Joined: Mon Mar 18, 2019 7:27 pm
 Mon Jul 08, 2024 9:49 am • via Web
Also... if I enable "images" in Advanced attachment formatting", editing settings "" does not work and gives me this:

Code: Select all
Fatal error: Uncaught Error: Call to undefined method canidev\core\media::getInstance() in /home/opelklubnet/domains/opelforum.pl/public_html/ext/canidev/attachments/entity/formats/image.php:224 Stack trace: #0 /home/opelklubnet/domains/opelforum.pl/public_html/ext/canidev/attachments/entity/formats/image.php(79): canidev\attachments\entity\formats\image->get_media(true, true) #1 [internal function]: canidev\attachments\entity\formats\image->build_watermark_box(Array, Array) #2 /home/opelklubnet/domains/opelforum.pl/public_html/ext/canidev/core/controller/acp.php(149): call_user_func(Array, Array, Array) #3 /home/opelklubnet/domains/opelforum.pl/public_html/ext/canidev/attachments/controller/acp.php(133): canidev\core\controller\acp->display_vars(Array) #4 /home/opelklubnet/domains/opelforum.pl/public_html/ext/canidev/attachments/acp/main_module.php(34): canidev\attachments\controller\acp->display() #5 /home/opelklubnet/domains/opelforum.pl/public_html/includes/functions_module.php(676): canidev\attachments\acp\main_modul in /home/opelklubnet/domains/opelforum.pl/public_html/ext/canidev/attachments/entity/formats/image.php on line 224


PHP 7.3.33
User avatar
IvanPF
Administrator
 
Posts: 2265
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Mon Jul 08, 2024 9:59 am • via Web
@spinecki It seems like you have an error in the core. Please delete the /ext/canidev/core/ folder and upload it again, that should fix the problem.
no_avatar
spinecki
 
Posts: 7
Joined: Mon Mar 18, 2019 7:27 pm
 Mon Jul 08, 2024 11:17 am • via Web
Disabled, deleted, flushed the cache, uploaded again... still the same error.
User avatar
IvanPF
Administrator
 
Posts: 2265
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Mon Jul 08, 2024 11:39 am • via Web
¿In the folder /ext/canidev/core/ you have the file "Media.php" (with the first capital letter)?
no_avatar
spinecki
 
Posts: 7
Joined: Mon Mar 18, 2019 7:27 pm
 Mon Jul 08, 2024 12:28 pm • via Android
yes, i do have. i unpacked cbb-attachments package.
User avatar
IvanPF
Administrator
 
Posts: 2265
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Mon Jul 08, 2024 12:49 pm • via Web
It's strange because it doesn't seem to recognize the file.
In cBB Reations does the same thing happen to you when editing or creating a reaction?
Next

Who is online

Users browsing this forum: No registered users and 0 guests