Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Daily Diamond

PHP Error. Please help

Status
Not open for further replies.

thethemes

Level 5
Legacy Platinum Member
Joined
Dec 21, 2004
Messages
377
Reaction score
0
i install OSTUBE and i have this error

Warning: Missing argument 1 for __construct() in public_html/media/video/uploader/simpleuploader/class.php on line 8

in the file class.php there this:

PHP:
<?php 

class simpleuploader extends uploader { 
        var $prio = 1; 

        // PHP 5.x Class-Definition 

        function __construct(&$parent) { 
        
                $this->parent = &$parent; 
                $this->enabled = $this->check_conditions(); 
        
        } 
        
        // PHP 4.x Class Definition 
        
        function phpuploader(&$parent) { 
        
                $this->__construct($parent); 
        
        } 

        // check-up 
        
        function check_conditions() { 
                        
                return true; 
        
        } 
        
        // 
        // 
        // 
        
        function head() { 
                global $config, $main; 
        
                require_once 'SimpleUpload.class.php'; 

                $this->upload = new SimpleUpload();      
        
        } 

} 

?>

Can anyone please help me out to fix this ?
 
Domain Summit 2024

Japh

Level 1
Legacy Platinum Member
Joined
Jul 16, 2007
Messages
23
Reaction score
0
I haven't used OSTUBE before, but I'd say removing the "__" won't help you.

You should be able to find a line somewhere that says something like:
$varName = new simpleuploader($var);

($varName and $var are just examples)

The problem seems like it would be with whatever you have where I've put $var.

I will try and find a copy of OSTUBE so I can help further :)

Edit: Just noticed this on the osTube website:
"Not to modify the software's source code (especially applies to all PHP files)", so I would assume you shouldn't have to edit the PHP files to fix whatever is going wrong here... (assuming you're using the community edition)
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Sedo - it.com Premiums

IT.com

Premium Members

AucDom
UKBackorder
Be a Squirrel
MariaBuy

New Threads

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom