ik snap het echt nietFatal error: Call to undefined function: session_pagestart() in /data/members/free/tripod/nl/l/o/l/lolx4/htdocs/shop/shop_install.php on line 40
hulp bij de shop
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

hulp bij de shop
ik krijg een foutmelding van fatal error en dan een bestand wie weet waarom
dit?
<?php
/***************************************************************************
* shop_install.php
* -------------------
* Version : 2.6.0
* begin : Friday, December 6th, 2002
* released : being built
* email : ice_rain_@hotmail.com
* aim : zarath42
* msn messanger : ice_rain_@hotmail.com
*
***************************************************************************/
/***************************************************************************
*
* copyright (C) 2002/2003 IcE-RaiN/Zarath
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* http://www.gnu.org/copyleft/gpl.html
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path='./';
include($phpbb_root_path.'extension.inc');
include($phpbb_root_path.'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if( !$userdata['session_logged_in'] )
{
header('Location: ' . append_sid("login.$phpEx?redirect=shop_install.$phpEx", true));
}
if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}
if( !strstr($dbms, "mysql") )
{
if( !isset($bypass) )
{
$message = 'This mod has only been tested on MySQL and may only work on MySQL.<br />';
$message .= 'Click <a href="mod_install.php?bypass=true">here</a> to install anyways.';
message_die(GENERAL_MESSAGE, $message);
}
}
$sql = array();
$sql[] = "create table `phpbb_shopitems` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `name` CHAR (32) NOT NULL, `shop` CHAR (32) NOT NULL, `sdesc` CHAR (80) NOT NULL, `ldesc` TEXT NOT NULL, `cost` INT (20) UNSIGNED DEFAULT '100', `stock` TINYINT (3) UNSIGNED DEFAULT '10', `maxstock` TINYINT (3) UNSIGNED DEFAULT '100', `sold` INT (5) UNSIGNED NOT NULL DEFAULT '0', `accessforum` INT (4) DEFAULT '0', PRIMARY KEY(`id`), INDEX(`name`))";
$sql[] = "create table `phpbb_shops` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `shopname` CHAR (32) NOT NULL, `shoptype` CHAR (32) NOT NULL, PRIMARY KEY(`id`), `type` char (32) NOT NULL, `restocktime` INT (20) UNSIGNED DEFAULT '86400', `restockedtime` INT (20) UNSIGNED DEFAULT '0', `restockamount` INT (4) UNSIGNED DEFAULT '5', `amountearnt` INT (20) UNSIGNED DEFAULT '0', INDEX(`shopname`))";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values ('multibuys', 'on')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values ('restocks', 'off')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values ('sellrate', '75')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values ('viewtopic', 'images')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values ('viewprofile', 'images')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values ('viewinventory', 'grouped')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values ('specialshop', 'ßstoreÞdisabledßnameÞEffects StoreßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values ('viewtopiclimit', '5')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values('shop_orderby', 'name')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values('shop_give', 'on')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values('shop_trade', 'on')";
$sql[] = "insert into " . CONFIG_TABLE . " (config_name, config_value) values('shop_invlimit', '0')";
$sql[] = "alter table " . USERS_TABLE . " add `user_effects` CHAR (255)";
$sql[] = "alter table " . USERS_TABLE . " add `user_privs` CHAR (255)";
$sql[] = "alter table " . USERS_TABLE . " add `user_custitle` TEXT";
$sql[] = "alter table " . USERS_TABLE . " add `user_specmsg` TEXT";
$sql[] = "alter table " . USERS_TABLE . " add `user_items` TEXT";
$sql[] = "alter table " . USERS_TABLE . " add `user_trade` TEXT";
$sql_count = count($sql);
echo "<html>\n";
echo "<body>\n";
for($i = 0; $i < $sql_count; $i++)
{
echo "Running :: " . $sql[$i];
flush();
if ( !$db->sql_query($sql[$i]) )
{
$errored = true;
$error = $db->sql_error();
echo " -> <b>FAILED</b> ---> <u>" . $error['message'] . "</u><br /><br />\n\n";
}
else
{
echo " -> <b>COMPLETED</b><br /><br />\n\n";
}
}
if( $errored )
{
$message = "Some of the querys have failed, contact me so I can fix the errors.";
}
else
{
$message = "The table have been edited successfully. You can now delete this file.";
}
echo "\n<br />\n<b>Finished!</b><br />\n";
echo $message . "<br />\n";
echo "</body>\n";
echo "</html>\n";
exit();
?>
Re: hulp bij de shop
Je moet shop_install in de root directorie uitvoeren niet in een shop directory.harr3 schreef:ik krijg een foutmelding van fatal error en dan een bestand wie weet waaromik snap het echt nietFatal error: Call to undefined function: session_pagestart() in /data/members/free/tripod/nl/l/o/l/lolx4/htdocs/shop/shop_install.php on line 40
Wat is dat tegenwoordig trouwens met die zinloze polls die overal maar aangekleefd worden???
-=|Rik|=- kan schadelijk zijn voor de gezondheid.
Krijg toch allemaal de kolere, val voor mijn part allemaal dood.
Krijg toch allemaal de kolere, val voor mijn part allemaal dood.
dit krijg ik nu bij instal.php
Running :: create table `phpbb_shopitems` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `name` CHAR (32) NOT NULL, `shop` CHAR (32) NOT NULL, `sdesc` CHAR (80) NOT NULL, `ldesc` TEXT NOT NULL, `cost` INT (20) UNSIGNED DEFAULT '100', `stock` TINYINT (3) UNSIGNED DEFAULT '10', `maxstock` TINYINT (3) UNSIGNED DEFAULT '100', `sold` INT (5) UNSIGNED NOT NULL DEFAULT '0', `accessforum` INT (4) DEFAULT '0', PRIMARY KEY(`id`), INDEX(`name`)) -> FAILED ---> Table 'phpbb_shopitems' already exists
Running :: create table `phpbb_shops` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `shopname` CHAR (32) NOT NULL, `shoptype` CHAR (32) NOT NULL, PRIMARY KEY(`id`), `type` char (32) NOT NULL, `restocktime` INT (20) UNSIGNED DEFAULT '86400', `restockedtime` INT (20) UNSIGNED DEFAULT '0', `restockamount` INT (4) UNSIGNED DEFAULT '5', `amountearnt` INT (20) UNSIGNED DEFAULT '0', INDEX(`shopname`)) -> FAILED ---> Table 'phpbb_shops' already exists
Running :: insert into phpbb_config (config_name, config_value) values ('multibuys', 'on') -> FAILED ---> Duplicate entry 'multibuys' for key 1
Running :: insert into phpbb_config (config_name, config_value) values ('restocks', 'off') -> FAILED ---> Duplicate entry 'restocks' for key 1
Running :: insert into phpbb_config (config_name, config_value) values ('sellrate', '75') -> FAILED ---> Duplicate entry 'sellrate' for key 1
Running :: insert into phpbb_config (config_name, config_value) values ('viewtopic', 'images') -> FAILED ---> Duplicate entry 'viewtopic' for key 1
Running :: insert into phpbb_config (config_name, config_value) values ('viewprofile', 'images') -> FAILED ---> Duplicate entry 'viewprofile' for key 1
Running :: insert into phpbb_config (config_name, config_value) values ('viewinventory', 'grouped') -> FAILED ---> Duplicate entry 'viewinventory' for key 1
Running :: insert into phpbb_config (config_name, config_value) values ('specialshop', 'ßstoreÞdisabledßnameÞEffects StoreßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1ßoffÞ1') -> FAILED ---> Duplicate entry 'specialshop' for key 1
Running :: insert into phpbb_config (config_name, config_value) values ('viewtopiclimit', '5') -> FAILED ---> Duplicate entry 'viewtopiclimit' for key 1
Running :: insert into phpbb_config (config_name, config_value) values('shop_orderby', 'name') -> FAILED ---> Duplicate entry 'shop_orderby' for key 1
Running :: insert into phpbb_config (config_name, config_value) values('shop_give', 'on') -> FAILED ---> Duplicate entry 'shop_give' for key 1
Running :: insert into phpbb_config (config_name, config_value) values('shop_trade', 'on') -> FAILED ---> Duplicate entry 'shop_trade' for key 1
Running :: insert into phpbb_config (config_name, config_value) values('shop_invlimit', '0') -> FAILED ---> Duplicate entry 'shop_invlimit' for key 1
Running :: alter table phpbb_users add `user_effects` CHAR (255) -> FAILED ---> Duplicate column name 'user_effects'
Running :: alter table phpbb_users add `user_privs` CHAR (255) -> FAILED ---> Duplicate column name 'user_privs'
Running :: alter table phpbb_users add `user_custitle` TEXT -> FAILED ---> Duplicate column name 'user_custitle'
Running :: alter table phpbb_users add `user_specmsg` TEXT -> FAILED ---> Duplicate column name 'user_specmsg'
Running :: alter table phpbb_users add `user_items` TEXT -> FAILED ---> Duplicate column name 'user_items'
Running :: alter table phpbb_users add `user_trade` TEXT -> FAILED ---> Duplicate column name 'user_trade'
Finished!
Some of the querys have failed, contact me so I can fix the errors.
Uitstekend, dat betekend dat de tabellen er al zijn. Hoevaak heb je de install proberen uit te voeren?
Moet we l:)Prophecy schreef:ja, kortom de installatie is gelukt...![]()
nu moet je alleen de files nog modden of hoeft dat niet bij die mod, ik ben niet echt bekend met die mod!
-=|Rik|=- kan schadelijk zijn voor de gezondheid.
Krijg toch allemaal de kolere, val voor mijn part allemaal dood.
Krijg toch allemaal de kolere, val voor mijn part allemaal dood.