Page 1 of 3
Frontend upload - 0 call to a member function getname () on null
Posted: 21 Jan 2019, 10:51
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
Re: Frontend upload - 0 call to a member function getname () on null
Posted: 27 Jan 2019, 20:42
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
Re: Frontend upload - 0 call to a member function getname () on null
Posted: 28 Jan 2019, 03:07
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! :)
Re: Frontend upload - 0 call to a member function getname () on null
Posted: 29 Jan 2019, 00:44
by Jan
Ok
Re: Frontend upload - 0 call to a member function getname () on null
Posted: 29 Jan 2019, 16:26
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!
Re: Frontend upload - 0 call to a member function getname () on null
Posted: 29 Jan 2019, 16:39
by Jan
Hi, do you use bootstrap output or default?
Jan
Re: Frontend upload - 0 call to a member function getname () on null
Posted: 29 Jan 2019, 17:28
by sven10101979
Bootstrap!
Re: Frontend upload - 0 call to a member function getname () on null
Posted: 01 Feb 2019, 16:27
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
Re: Frontend upload - 0 call to a member function getname () on null
Posted: 05 Feb 2019, 13:46
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
Re: Frontend upload - 0 call to a member function getname () on null
Posted: 05 Feb 2019, 15:09
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