Pagina 1 van 1

Cashmod

Geplaatst: 18 jul 2005, 08:07
door Snakegamer
Hey,

Ik heb de Cashmod 2.2.2 geinstalleerd.
Maar zodra ik klik op hetgene wat omstreept is.

Afbeelding

Dan zie je wat ik voor een error krijg.


Hier zie je de eerste 35 regels.
van Admin_cash

Code: Selecteer alles


<?php
/***************************************************************************
 *                              admin_cash.php
 *                            -------------------
 *   begin                : Monday, Aug 18, 2003
 *   copyright            : (C) 2003 Xore
 *   email                : mods@xore.ca
 *
 *   $Id: admin_cash.php,v 1.1.0.0 2003/09/18 23:03:34 Xore $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   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.
 *
 ***************************************************************************/

if ( !defined('ADMIN_MENU') )
{
	define('ADMIN_MENU',1);
	function admin_menu(&$menu)
	{
		global $lang;
		$i = 0;
		$j = 0;
		$menu[$i] = new cash_menucat($lang['Cmcat_main']);
		$menu[$i]->additem(new cash_menuitem($j,	'Cash_Configuration',	'cash_config',		$lang['Cmenu_cash_config']));
		$menu[$i]->additem(new cash_menuitem($j,	'Cash_Currencies',		'cash_currencies',	$lang['Cmenu_cash_currencies']));
		$menu[$i]->additem(new cash_menuitem($j,	'Cash_Forums',			'cash_forums',		$lang['Cmenu_cash_forums']));
		$menu[$i]->additem(new cash_menuitem($j,	'Cash_Settings',		'cash_settings',	$lang['Cmenu_cash_settings']));

Geplaatst: 18 jul 2005, 16:58
door Luuk
Loop de mod nog eens na, misschien ben je vergeten wat bestanden te uploaden?

Geplaatst: 18 jul 2005, 17:34
door Snakegamer
Alles is upgeload.

Geplaatst: 19 jul 2005, 07:22
door Snakegamer
Sorry voor de dubbelpost.
Maar in de engelse Troubleshouting staat:


Fatal error: Cannot instantiate non-existent class: cash_menucat

Problem: This class is defined in functions_cash.php, which should be included via common.php (which is included into admin panels via pagestart.php, which most likely means functions_cash.php isn't being included in common.php (or properly)
Fix: Check your install instructions, Find the instructions for common.php and apply the edits properly
Weet iemand wat nou het probleem is en hoe ik het oplos?

Geplaatst: 19 jul 2005, 09:41
door Paul
common.php controleren of je allles goed hebt aangepast ;)

Geplaatst: 19 jul 2005, 09:50
door Snakegamer
ik heb de common.php in de .zip gewoon over de commen.php die in de FTP stond.

EDIT: er was helemaal geen common.php dus heb ik daar niks in veranderd.

Geplaatst: 19 jul 2005, 09:57
door Paul
er MOET een common.php, in de root van phpbb staan, anders werkt heel phpbb niet ;)

Geplaatst: 19 jul 2005, 10:27
door Snakegamer
Ik heb alles verholpen maar nu heb ik een andere fout.
Parse error: parse error, unexpected T_STRING in /home/michel/domains/michaelvijgen.nl/public_html/forum/language/lang_dutch/lang_cash.php on line 290

Code: Selecteer alles

// Cash Mod Log Text 
// Note: there isn't really a whole lot i can do about it, if languages use 
a 
// grammar that requires these arguments (%s) to be in a different order, 
it's stuck in 
// this order. The up side is that this is about 10x more comprehensive than 
the 
// last way i did it. 
// 
Dit zijn Regel 287 t/m 295 van dat bestand.
Ziet iemand de fout?

Geplaatst: 19 jul 2005, 10:46
door Paul
Haal dat stukje maar weg :)

Geplaatst: 19 jul 2005, 11:45
door Snakegamer
weet je zeker dat het dan werkt?

Geplaatst: 19 jul 2005, 11:52
door Paul
waarschijnlijk wel ja, is toch alleen maar commentaar.

Geplaatst: 19 jul 2005, 14:01
door Snakegamer
Hij doet het!!
Alleen als ik soms wat te snel klik krijg ik deze error.

Code: Selecteer alles

Warning: mysql_connect(): Too many connections in /home/michel/domains/michaelvijgen.nl/public_html/forum/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/michel/domains/michaelvijgen.nl/public_html/forum/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/michel/domains/michaelvijgen.nl/public_html/forum/db/mysql4.php on line 331
phpBB : Critical Error 

Could not connect to the database 
Toch wel een groot probleem dit krijg je bij Memberlist,Profile Cash Admin en Cash Help

Geplaatst: 19 jul 2005, 14:06
door Snakegamer
En bij viewtopic ook een error

Code: Selecteer alles


Parse error: parse error, unexpected T_VARIABLE in /home/michel/domains/michaelvijgen.nl/public_html/forum/viewtopic.php on line 26


Code: Selecteer alles

define('IN_PHPBB', true);
define('IN_CASHMOD', true);
define('CM_VIEWTOPIC', true)
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
Regel: 23 t/m 29

[/url]

Geplaatst: 19 jul 2005, 14:08
door Paul
verander

Code: Selecteer alles

define('CM_VIEWTOPIC', true) 
in

Code: Selecteer alles

define('CM_VIEWTOPIC', true); 
;)

Geplaatst: 19 jul 2005, 14:13
door Snakegamer
Bedankt (alweer) het werkt.
Weet jij hoe ik dit database fout kan oplossen?

Code: Selecteer alles

Warning: mysql_connect(): Too many connections in /home/michel/domains/michaelvijgen.nl/public_html/forum/db/mysql4.php on line 48 

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/michel/domains/michaelvijgen.nl/public_html/forum/db/mysql4.php on line 330 

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/michel/domains/michaelvijgen.nl/public_html/forum/db/mysql4.php on line 331 
phpBB : Critical Error 

Could not connect to the database 

Code: Selecteer alles

  
		$this->persistency = $persistency;
		$this->user = $sqluser;
		$this->password = $sqlpassword;
		$this->server = $sqlserver;
		$this->dbname = $database;

		$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password);

		if( $this->db_connect_id )
		{
			if( $database != "" )
			{
				$this->dbname = $database;
				$dbselect = mysql_select_db($this->dbname);
42 t/m 55


Code: Selecteer alles

			return true;
		}
		else
		{
			return false;
		}
	}

	function sql_error()
	{
		$result['message'] = mysql_error($this->db_connect_id);
		$result['code'] = mysql_errno($this->db_connect_id);

		return $result;
	}

} // class sql_db

} // if ... define

?>
320 t/m 340

Geplaatst: 19 jul 2005, 14:21
door Paul
Moet je bij je host zijn, aantal connecties moeten worden verhoogt ;)

Geplaatst: 19 jul 2005, 14:23
door Snakegamer
Heb er al een paar minuten geen last van gehad.
Bedankt.
Willen jullie dit topic nog eventjes open houden voor het geval dat.