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 Jan

Yes, we are coming closer to the final solution. Both was to be changed as advised by you. session and listsfile was required to be changed.

However, there is still a button with class "btn tip hasTooltip" which seems to cause any problem as it is not displayed. I assume it something like a search button.

See screen shot. That looks a bit strange.

Cheers

Sven

Image

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
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, hmmm, this could be some CSS issue, are you able to see the button with help of e.g. DevTools in Google Chrome browser (click F12 in chrome and inspect the button and its CSS) :idea:

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,

See pictures below.

There seems to be another problem with file title (Datei Titel) as there is some html code inside.

Sven

Image
Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
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, click on the text input field and press CTRL+A (so all text will be selected) and copy it, so the whole warning text can be seen.

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,

Here you go...

Code: Select all

<br /><b>Notice</b>:  Undefined property: PhocaDownloadViewUser::$formdata in <b>/var/www/web366/html/intranet/templates/jp-expert/html/com_phocadownload/user/default_files.php</b> on line <b>280</b><br /><br /><b>Notice</b>:  Trying to get property of non-object in <b>/var/www/web366/html/intranet/templates/jp-expert/html/com_phocadownload/user/default_files.php</b> on line <b>280</b><br />
Line 280 is as following:

Code: Select all

<td><input type="text" id="phocadownload-upload-title" name="phocadownloaduploadtitle" value="<?php echo $this->formdata->title ?>"  maxlength="255" class="comment-input" /></td>
Cheers

Sven
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
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,

FROM:

Code: Select all

$this->formdata->title
TO:

Code: Select all

$this->t['formdata']->title
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,

Yes, this has solved another issue again.

There is still something with buttons (See picture).

Do you find any other code issue in respect of the button?

Code: Select all

<div class="filter-search btn-group pull-left">
	<label for="filter_search" class="element-invisible"><?php echo JText::_( 'COM_PHOCADOWNLOAD_FILTER' ); ?></label>
	<input type="text" name="search" id="pdsearch" placeholder="<?php echo JText::_( 'COM_PHOCADOWNLOAD_SEARCH' ); ?>" value="<?php echo $this->t['listsfiles']['search'];?>" title="<?php echo JText::_( 'COM_PHOCADOWNLOAD_SEARCH' ); ?>" />
</div>
	
<div class="btn-group pull-left hidden-phone">
	<button class="btn tip hasTooltip" type="submit" onclick="this.form.submit();"  title="<?php echo JText::_( 'COM_PHOCADOWNLOAD_SEARCH' ); ?>"><i class="icon-search"></i></button>
	<button class="btn tip hasTooltip" type="button" onclick="document.getElementById('pdsearch').value='';document.phocadownloadfilesform.submit();" title="<?php echo JText::_( 'COM_PHOCADOWNLOAD_SEARCH' ); ?>"><i class="icon-remove"></i></button>
</div>
Image
Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
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, seems like the buttons include the icons but the template does not load the CSS for renderin the icons (e.g. Bootstrap icons is missing there)

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