Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 3 of 3
  1. #1
    Platinum Lifetime Member
    thethemes's Avatar
    Join Date
    Dec 2004
    Location
    Aalborg, DK
    Posts
    377
    Country

    Denmark
    DNF$
    706
    Bank
    0
    Total DNF$
    706
    Donate  

    PHP Error. Please help

    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 Code:
    <?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 ?

  2. #2
    Moderator
    Johnn's Avatar
    Join Date
    Apr 2004
    Location
    Pennsylvania
    Posts
    15,008
    Country

    United States
    DNF$
    5,429
    Bank
    0
    Total DNF$
    5,429
    Donate  

    Re: PHP Error. Please help

    function __construct(&$parent) {

    Take the underscore out between function and construct.

    function construct(&$parent) {

  3. #3
    Gold Lifetime Member

    Join Date
    Jul 2007
    Location
    Australia
    Posts
    23
    DNF$
    281
    Bank
    0
    Total DNF$
    281
    Donate  

    Re: PHP Error. Please help

    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)
    Last edited by Japh; 07-26-2007 at 10:01 AM.

Similar Threads

  1. 14 Super PHP scripts, Ringtone site, and Photorating website!
    By NavySeals91 in forum DNF$ Sales/Domain Auctions
    Replies: 21
    Last Post: 07-06-2006, 07:09 PM
  2. Scripts 2 Sell Package on Auction
    By ForumsHelp in forum DNF$ Sales/Domain Auctions
    Replies: 15
    Last Post: 08-17-2005, 11:00 AM
  3. Beware of PHP! (& other ones :P )
    By PolurNET.com in forum Humor
    Replies: 13
    Last Post: 11-13-2004, 07:07 PM
  4. a nice one: mysqlphp.com
    By in forum Domain Name Appraisal Discussion
    Replies: 2
    Last Post: 04-27-2002, 04:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com