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

Phoca Download - download manager
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 Christine,

I have already realised version 3.1.7 and updated accordingly. Although this update didn't fix the problem (at least for me).

Sven

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, can you paste here the exact message including the file and line where the problem occurs?

(if case you run some specific template, e.g. based on gantry, just disable its error.php so the standard Joomla! error will be displayed - such displays then all the needed information)

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.

Error Reporting is on maximum, but there is actually no error message anymore since update to 3.1.7.

The browser is still showing a NULL without any error.

I have attached two pics. Pic 1 is to show where I click on a link to call the frontend upload. on left hand bottom you can see the URL. I believe anything is wrong with the URL, but I have no idea what should be wrong, because I didn't change anything else that the update to 3.1.6 and 3.1.7

Pic 2 is to to show the outcome after clicking on the link.

Hope this helps a bit. Otherwise I am happy to provide test access to front or backend.

Image
Image
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, which template do you use? Some templates just surpress displaying of the error.

Try to see your template folder and inside it, change the name of error.php (if there is) so standard error page will be displayed (such will display all the information about this error)

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.

I am using the template "Expert (jp-expert)" by Joomlaplates.com

I changed the filename of error.php as you advised. The outcome you can see in the following link. Probably this will not really help you to fix it. As already offered: I can provide a test admin success to the backend for you.

Image
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, first step successfully done, now you should go to Global Configuration and:

- set parameter Error Reporting to Development
Image
- and enable debug mode:
Image

So you will get the error message including the file and the line where the error occurs:
Image

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.

Done. Outcome of the error message now as following:

Image
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, so the error message says, that the error comes from template:
Image

which means, the template override does not include the methods from latest Phoca Download (which is logical as Phoca Download latest version was released some days ago). So this need to be fixed there (copy the code from Phoca Download output)

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,

not sure if you mean this code:

This is the code of line 263 in /templates/jp-expert/html/com_phocadownload/user/default_files.php

Code: Select all

<?php
<form onsubmit="return OnUploadSubmitFile();" action="<?php echo $this->t['actionamp'] ?>task=upload&amp;<?php echo $this->session->getName().'='.$this->session->getId(); ?>&amp;<?php echo JSession::getFormToken();?>=1" name="phocadownloaduploadform" id="phocadownload-upload-form" method="post" enctype="multipart/form-data">
?>
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,

change all the strings:
FROM:

Code: Select all

$this->session
TO:

Code: Select all

$this->t['session']
maybe this will be similar for:
FROM:

Code: Select all

$this->listfiles
TO:

Code: Select all

$this->t['listsfiles']
Jan
If you find Phoca extensions useful, please support the project
Post Reply