Problem upload file Front-end

Phoca Download - download manager
genovince
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 14 Nov 2022, 13:58

Problem upload file Front-end

Post by genovince »

when I try to upload from the frontend I get this warning. tail can it be?

thanks for your help



Call to undefined method Joomla \ Database \ Mysqli \ MysqliDriver :: getError ()
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem upload file Front-end

Post by Jan »

Hi, please enable debug mode in Joomla Global configuration to see the whole warning message (including the file and line where the error occurrs). Which version of Phoca Download do you use?

Jan
If you find Phoca extensions useful, please support the project
ferino
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 22 Apr 2015, 10:15

Re: Problem upload file Front-end

Post by ferino »

Hi, I have the same problem
new installation Joomla and Phoca Download
Joomla v4.2.6
Phoca Download v4.0.4
PHP v7.4.13
mySQL 8.0.31
Web Server: Microsoft-IIS/10.0

Code: Select all

0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::getError()
Call stack
#	Function	Location
1	()	JROOT\components\com_phocadownload\models\user.php:488
2	PhocaDownloadModelUser->_save()	JROOT\components\com_phocadownload\models\user.php:375
3	PhocaDownloadModelUser->singleFileUpload()	JROOT\components\com_phocadownload\views\user\view.html.php:207
4	PhocaDownloadViewUser->display()	JROOT\libraries\src\MVC\Controller\BaseController.php:639
5	Joomla\CMS\MVC\Controller\BaseController->display()	JROOT\components\com_phocadownload\controller.php:37
6	PhocaDownloadController->display()	JROOT\libraries\src\MVC\Controller\BaseController.php:672
7	Joomla\CMS\MVC\Controller\BaseController->execute()	JROOT\components\com_phocadownload\phocadownload.php:59
8	require_once()	JROOT\libraries\src\Dispatcher\LegacyComponentDispatcher.php:71
9	Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()	JROOT\libraries\src\Dispatcher\LegacyComponentDispatcher.php:73
10	Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()	JROOT\libraries\src\Component\ComponentHelper.php:355
11	Joomla\CMS\Component\ComponentHelper::renderComponent()	JROOT\libraries\src\Application\SiteApplication.php:200
12	Joomla\CMS\Application\SiteApplication->dispatch()	JROOT\libraries\src\Application\SiteApplication.php:241
13	Joomla\CMS\Application\SiteApplication->doExecute()	JROOT\libraries\src\Application\CMSApplication.php:294
14	Joomla\CMS\Application\CMSApplication->execute()	JROOT\includes\app.php:61
15	require_once()	JROOT\index.php:32
tramber91
Phoca Member
Phoca Member
Posts: 13
Joined: 09 Nov 2014, 21:11

Re: Problem upload file Front-end

Post by tramber91 »

Hi all

same issue on my side
In a fresh install of Phoca download 4.0.4 (in a website i have just upgrade to Joomla 4)
When I try to add file in front

Code: Select all

0 Call to undefined method Joomla\Database\Mysql\MysqlDriver::getError()

Database mysql
Database 5.7.23-23-log
Interclassement de la base de données utf8_general_ci
PHP 8.1.0
Version de Joomla Joomla! 4.2.6 Stable

But Ok in on another install !!
php 8

php 8.1 issue ? Not my website i have no way to test with lower php
PS: If I enable debug mode to maximum - all my website including admin side crash !!!

In same server; previously, no issue to manage the same function (Joomla 3.10, Phoca Download 3.2.3)

thanks for your support and great Xmas days
tramber91
Phoca Member
Phoca Member
Posts: 13
Joined: 09 Nov 2014, 21:11

Re: Problem upload file Front-end

Post by tramber91 »

Also strange

Now, if i want to upload same file, i have no more error message but just a warning (in red)
File not upload . File arlready exist !! (translation from french)
I have check in back and front, these files are nowhere in database are available to approve ?? I Check n php myadmin too

If I try again with a new file too large
I have also a warning, "File not upload , file too large"
But no error

last test with right and new file
same error (pas good)
0 Call to undefined method Joomla\Database\Mysql\MysqlDriver::getError()

Hope can help
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem upload file Front-end

Post by Jan »

Hi, do you get the same problems with Beta version?

https://github.com/PhocaCz/PhocaDownloa ... 5Beta6.zip

Jan

BTW
- file too large - means that file is too large - you can change the limits in Option
- file already exists - means that file already exists - so you need to upload other file or set in options that files can be overwritten.

Jan
If you find Phoca extensions useful, please support the project
tramber91
Phoca Member
Phoca Member
Posts: 13
Joined: 09 Nov 2014, 21:11

Re: Problem upload file Front-end

Post by tramber91 »

Hi

Thanks for your quick answer

I just update Phocadownload to the latest version version, 4.0.5 Beta 6 (proposal from joomla update section)
and no more issue on my side, i can upload from front

Thanks again and wish you an happy new year from France

Take care

Bertrand
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem upload file Front-end

Post by Jan »

Hi, now, there is stable version:
https://www.phoca.cz/download/category/ ... -component

Jan
If you find Phoca extensions useful, please support the project
Post Reply