It appears you have not yet registered with our community. To register please click here...

DNforum.com - Domain Sales, Domain Forum, Domain Appraisals
 
Register Now!
Register Now for FREE!
Our records show you have not yet registered to our forums. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:  
Birthday:       I agree to forum rules 

Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Coding/Programming/Languages
Reply
 
LinkBack Thread Tools Display Modes
Old 07-25-2007, 07:30 PM   #1 (permalink)
Platinum Lifetime Member
 
Name: Svend Laue
Last Online: 09-22-2008 07:03 AM
iTrader: (11)
Join Date: Dec 2004
Posts: 364
DNF$: 186
Location: Aalborg, DK
Country:


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 ?
__________________
PHPNuke Themes
thethemes is offline   Reply With Quote
Sponsored Links
Old 07-25-2007, 10:52 PM   #2 (permalink)
Exclusive Senior Newbie
 
Johnn's Avatar
 
Last Online: Yesterday 10:26 PM
iTrader: (290)
Join Date: Apr 2004
Posts: 8,655
DNF$: 16,973
Location: Pennsylvania
Country:


Re: PHP Error. Please help

function __construct(&$parent) {

Take the underscore out between function and construct.

function construct(&$parent) {
Johnn is offline   Reply With Quote
Old 07-26-2007, 10:56 AM   #3 (permalink)
Gold Lifetime Member
 
Last Online: 09-14-2007 02:50 AM
iTrader: (1)
Join Date: Jul 2007
Posts: 23
DNF$: 100
Location: Australia
Country:


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 11:01 AM.
Japh is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 03:21 AM.
Copyright @2001-2008 DNForum.com

Learn Domains
Promote Domains
Research Domains
Buy Domains
Resell Domains
Park Domains
Sell Domains
Build Domains
Host Domains
Trademark Domains
Domain Domains
manage Domains
Appraise Domains