Page 3 of 3

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

Posted: 14 Feb 2019, 11:00
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

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

Posted: 14 Feb 2019, 18:07
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

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

Posted: 18 Feb 2019, 13:57
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

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

Posted: 19 Feb 2019, 15:47
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

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

Posted: 19 Feb 2019, 17:17
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

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

Posted: 22 Feb 2019, 12:36
by Jan
Hi,

FROM:

Code: Select all

$this->formdata->title
TO:

Code: Select all

$this->t['formdata']->title
Jan

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

Posted: 23 Feb 2019, 15:48
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

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

Posted: 25 Feb 2019, 17:19
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