Phoca download module - upgrade issue

Phoca Download - download manager
Ross.Rawlins
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 21 Feb 2020, 08:06

Phoca download module - upgrade issue

Post by Ross.Rawlins »

I have recently had to upgrade a Joomla site to the latest because the server was only going to support php 7.2+. Previously the downloads module was working perfectly but after the upgrade the module has now caused any page that it is on to crash with the error 'Fatal Error 0 Using $this when not in object context'. When I looked further it seems to be the content plugin not working well with he module. The version I have of the module is 3.0.0 and I am not sure if there is a new version that resolves this or if this is a known issue. I dont want to have to link each file so if there is a work around to this that would be awesome.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9610
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca download module - upgrade issue

Post by Benno »

Hi,
from which Module are you talking?
Which PHP version are you currently using?
Which Joomla! version are you currently using?
Which Phoca Component version are you currently using?
Set "Error Reporting = Development" to get a "Call Stack" message and post this message.

Kind regards,
Benno
sushismb
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 28 Feb 2010, 18:32

Re: Phoca download module - upgrade issue

Post by sushismb »

Hi,

From Joomla 2.x, I've upgraded to 3.5.1.
I also upgraded Phoca download to the latest 3.1.9.

The result:
Front end component shows the following errors;

1146, Table 'deszr_data.#__phocadownload_styles' doesn't exist SQL=SELECT a.filename as filename, a.type as type, a.menulink as menulink FROM #__phocadownload_styles AS a WHERE a.published = 1 ORDER BY a.type, a.ordering ASC

Backend;
Following pages opens but the layout is messed up;

Files, Category

While the following pages return errors;

Styles (CSS)
1146 Table 'deszr_data.#__phocadownload_styles' doesn't exist SQL=SELECT a.id, a.filename, a.type FROM #__phocadownload_styles AS a

Logging
500 Table 'deszr_data.#__phocadownload_logging' doesn't exist SQL=SELECT COUNT(*) FROM #__phocadownload_logging AS a LEFT JOIN #__phocadownload AS f ON f.id = a.fileid LEFT JOIN #__phocadownload_categories AS cc ON cc.id = f.catid LEFT JOIN #__users AS ua ON ua.id = a.userid WHERE (a.type IN (1, 2)) Table 'deszr_data.#__phocadownload_logging' doesn't exist SQL=SELECT a.*,f.id as file_id, f.title as file_title, f.filename as filename,cc.id as category_id,ua.id AS userid, ua.username AS username, ua.name AS usernameno FROM #__phocadownload_logging AS a LEFT JOIN #__phocadownload AS f ON f.id = a.fileid LEFT JOIN #__phocadownload_categories AS cc ON cc.id = f.catid LEFT JOIN #__users AS ua ON ua.id = a.userid WHERE (a.type IN (1, 2)) ORDER BY a.date asc LIMIT 0, 20 Table 'deszr_data.#__phocadownload_logging' doesn't exist SQL=SELECT COUNT(*) FROM #__phocadownload_logging AS a LEFT JOIN #__phocadownload AS f ON f.id = a.fileid LEFT JOIN #__phocadownload_categories AS cc ON cc.id = f.catid LEFT JOIN #__users AS ua ON ua.id = a.userid WHERE (a.type IN (1, 2))

PHP Version 5.6.40

I'd appreciate any help!

Thank you very much in advance!
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: Phoca download module - upgrade issue

Post by christine »

Hi @sushismb,
sushismb wrote: 11 Mar 2020, 05:49 From Joomla 2.x, I've upgraded to 3.5.1.
I think, you made wrong migration from Joomla 2.5 to Joomla 3.X

https://www.phoca.cz/documents/50-phoca ... o-joomla-3

Current Version of Joomla is: 3.9.16 You are missing many bug & security releases.
PHP Version 5.6.40

PHP Version is outdated and depreciated. Needed: PHP 7.3
Template up to date?
All other extensions up to date?

Kind regards
Christine
Post Reply