Frontend upload - 0 call to a member function getname () on null

Phoca Download - download manager
nicky
Phoca Member
Phoca Member
Posts: 10
Joined: 06 Feb 2013, 00:07
Location: Melbourne, Australia
Contact:

Frontend upload - 0 call to a member function getname () on null

Post by nicky »

Hi Jan,

I just updated a site to 3.1.6 and the frontend upload via a menu link stopped working, with error:

0 call to a member function getname () on null

on the Chrome tab, and a "page not found" on the actual page.

I've rolled the site back to 3.1.4 and it's working fine.

Cheers,
Nicky

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

Re: Frontend upload - 0 call to a member function getname () on null

Post by Jan »

Hi, when you enable php error reporting or view the errorLog on server, do you get some more detailed error message (including the file and line where the error occurs)?
https://www.phoca.cz/documents/16-jooml ... rs-on-site

Jan
If you find Phoca extensions useful, please support the project
nicky
Phoca Member
Phoca Member
Posts: 10
Joined: 06 Feb 2013, 00:07
Location: Melbourne, Australia
Contact:

Re: Frontend upload - 0 call to a member function getname () on null

Post by nicky »

Jan has solved my problem! The issue was, I had an override in mytemplate/html/com_phocoadownload/user, which was created on an earlier version of PhocaDownload. Jan advised some obsolete functions had been removed in PhocaDownload 3.1.6, and he tracked the problem down to an old function in that override.

Solution: Recreate the override from the latest 3.1.6 to make sure all the code is correct.

Thanks Jan, love your work! :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Frontend upload - 0 call to a member function getname () on null

Post by Jan »

Ok :-)
If you find Phoca extensions useful, please support the project
sven10101979
Phoca Member
Phoca Member
Posts: 23
Joined: 17 Mar 2018, 21:50

Re: Frontend upload - 0 call to a member function getname () on null

Post by sven10101979 »

Hi. Hope it is okay to reopen this post of nicky because I have the exact same issue. The suggested solution is not working for me as I don't have any overrides for phoca download.

Can you please advise on how to fix the issue for me as well?

Many thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Frontend upload - 0 call to a member function getname () on null

Post by Jan »

Hi, do you use bootstrap output or default?

Jan
If you find Phoca extensions useful, please support the project
sven10101979
Phoca Member
Phoca Member
Posts: 23
Joined: 17 Mar 2018, 21:50

Re: Frontend upload - 0 call to a member function getname () on null

Post by sven10101979 »

Bootstrap!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Frontend upload - 0 call to a member function getname () on null

Post by Jan »

So when you switch to default (for test), it should be Ok.
Try to see this:
viewtopic.php?f=31&t=59565&p=154897#p154851
This should be similar issue.
Please let me know if this works for you, if yes, I will implement it in next version.

Jan
If you find Phoca extensions useful, please support the project
sven10101979
Phoca Member
Phoca Member
Posts: 23
Joined: 17 Mar 2018, 21:50

Re: Frontend upload - 0 call to a member function getname () on null

Post by sven10101979 »

Hi Jan.

Did not work for me unfortunately.

If you need admin access for testing, I would be happy to provide it to you. Let me know.

Sven
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Frontend upload - 0 call to a member function getname () on null

Post by christine »

Hi Sven,

try again (update) to latest version 3.1.7 from feb3rd: https://www.phoca.cz/download/category/ ... -component. Maybe it's now included. Because the last post/info was from feb1st

Kind regards
Christine
Post Reply