OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Edocument download not working - REM (0 viewing) 

Joomla Real Estate

Go to bottom Favoured: 0

Edocument download not working - REM

bidbank (Visitor)
Posts: 0
graphgraph
User Offline
Edocument download not working - REM 11 Years, 1 Month ago
Karma: 0  
Good day

I can sucessfully upload a pdf document on "add new house" - REM, but when clicking to download it, I get this php error message:

Fatal error: Call to undefined function downloaditself() in /usr/www/users/xxxxxxx/components/com_realest...ealestatemanager.php on line 397

The code on line 397 is:
Code:

   function mydownload($id){
        global $realestatemanager_configuration;
        global $mosConfig_absolute_path;

        $session = JFactory::getSession(); 
        $pas = $session->get("ssmid","default");
        $sid_1 = $session->getId();

        if(!($session->get("ssmid","default")) || $pas == "" || $pas != $sid_1  || $_COOKIE['ssd'] != $sid_1 ||
            !array_key_exists("HTTP_REFERER",$_SERVER ) || $_SERVER["HTTP_REFERER"] == "" ||
                strpos($_SERVER["HTTP_REFERER"],$_SERVER['SERVER_NAME']) === false){
                    echo '<H3 align="center">Link failure</H3>';
                    exit;
                }
        if($realestatemanager_configuration['license']['show']){
            $fd = fopen($mosConfig_absolute_path."/components/com_realestatemanager/mylicense.php", "w" ) or die ("Config license file is failure");
            fwrite( $fd, $realestatemanager_configuration['license']['text']);
            fclose( $fd );
            HTML_realestatemanager :: displayLicense($id);
        } else downloaditself($id); /*line 397*/
    }






The link upon click is: siteurl/index.php?option=com_realestatemanager&task=mdownload&id=49

My edok_link variable

Code:

 <?php echo $house->edok_link; ?>


Contains this url:

/components/com_realestatemanager/edocs/34555e210fd6830b7a59017e8aefe0d0Church_Street.pdf

I can't figure out where it goes wrong. Please assist, thanks.
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:Edocument download not working - REM 11 Years, 1 Month ago
Karma: 101  
Hello,

Please replace row
Code:

        } else downloaditself($id); /*line 397*/


to
Code:

        } else HTML_realestatemanager::downloaditself($id); /*line 397*/


Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
bidbank (Visitor)
Posts: 0
graphgraph
User Offline
Re:Edocument download not working - REM 11 Years, 1 Month ago
Karma: 0  
Hi, replaced the code on /*line 397*/ but I still get the same error.

Is there anything else I need to change.

Thanks
Logged Logged
The administrator has disabled public write access.
bidbank (Visitor)
Posts: 0
graphgraph
User Offline
Re:Edocument download not working - REM 11 Years, 1 Month ago
Karma: 0  
Also I need to know if there is a variable that contains the file name for the uploaded edocument. If so i can generate my own download link.

Thanks
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:Edocument download not working - REM 11 Years, 1 Month ago
Karma: 101  
Hello,

replaced the code on /*line 397*/ but I still get the same error.
If you did that - you will stop see error in that place.
Please clean joomla cache, and turn of it.


if there is a variable that contains the file name
File name will look exactly as user upload it

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
hannskanns (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Edocument download not working - REM 10 Years, 11 Months ago
Karma: 0  
Hi There,

I have the same situation while downloading an eDocument from the Frontent.
I already used the tips (replace Code and delete Joomla Cache) descriped in this thread, but didn't work. Actually, the following Error appears:

Fatal error: Call to undefined method HTML_realestatemanager::downloaditself() in /homepages/15/d352592746/htdocs/neu/components/com_realestatemanager/realestatemanager.php on line 397

Here is my code round about line 397 in realestatemanager.php:

Code:

                }
        if($realestatemanager_configuration['license']['show']){
            $fd = fopen($mosConfig_absolute_path."/components/com_realestatemanager/mylicense.php", "w" ) or die ("Config license file is failure");
            fwrite( $fd, $realestatemanager_configuration['license']['text']);
            fclose( $fd );
            HTML_realestatemanager :: displayLicense($id);
        } else HTML_realestatemanager::downloaditself($id);
    }


function downloaditself($idt){
    global $database, $my, $realestatemanager_configuration, $mosConfig_absolute_path;

    $session = JFactory::getSession();
    $pas = $session->get("ssmid","default");
    $sid_1 = $session->getId();




Thanks in advance for your support.

Real estate Manager v 2.3 PRO
Joomla 2.5.7 Stable
Logged Logged
The administrator has disabled public write access.
Go to top
»