function __construct(&$parent) {
Take the underscore out between function and construct.
function construct(&$parent) {
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!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:
Can anyone please help me out to fix 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();
}
}
?>
function __construct(&$parent) {
Take the underscore out between function and construct.
function construct(&$parent) {
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.
Bookmarks