Page 1 of 2

ACP error

Posted: 22 Nov 2011, 16:47
by artikkk

Code: Select all

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/admin/domains/pronosky.com/public_html/forum/includes/acp/info/acp_donation.php on line 30
i have this error on acp..

ACP error

Posted: 22 Nov 2011, 16:49
by Stoker
Ooopsie...
Open that file and find: 'ts_version' => '1.0.2'
Replace with: 'ts_version' => '1.0.2',

ACP error

Posted: 22 Nov 2011, 17:01
by artikkk
Now

Code: Select all

Parse error: syntax error, unexpected ',' in /home/admin/domains/pronosky.com/public_html/forum/includes/acp/info/acp_donation.php on line 31
LOL

ACP error

Posted: 22 Nov 2011, 17:09
by Stoker
That line should look like this: 'adjust_topstats' => array('title' => 'DONATION_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('ACP_DONATION_MOD')),
How does yours look like?

ACP error

Posted: 22 Nov 2011, 17:13
by artikkk

Code: Select all

'adjust_topstats'	=> array('title' => 'DONATION_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('ACP_DONATION_MOD')),
it's same.. how do it possible?
this is your code (now online on my board)

Code: Select all

<?php
/**
*
* @author Stoker 4.0
* @package Donation MOD
* @version $Id: acp_donation.php, v1.0.2 20011/20/11 07:19:43 Exp $
* @copyright (c) 2011 Stoker 4.0 
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package module_install
*/
class acp_donation_info
{
	function module()
	{
		return array(
			'filename'			=> 'acp_donation',
			'title'				=> 'ACP_DONATION_MOD',
			'ts_version'		=> '1.0.2',
			'adjust_topstats'	=> array('title' => 'DONATION_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('ACP_DONATION_MOD')),
			),
		);
	}
}

?>
:|

ACP error

Posted: 22 Nov 2011, 17:50
by Stoker
I now have installed this mod on 3 different sites, 2 different servers.
I am just not able to reproduce the error you have.

2 solutions:
Check you have the correct files
or
PM me ftp and admin access to your board and I will have a look.

ACP error

Posted: 22 Nov 2011, 18:33
by artikkk
Stoker wrote:I now have installed this mod on 3 different sites, 2 different servers.
I am just not able to reproduce the error you have.

2 solutions:
Check you have the correct files
or
PM me ftp and admin access to your board and I will have a look.
i have redownload your pack, and reup all files.. but it doesn't work :x
i can't send you ftp and admic access.. it's my live board

aaaaaargh.. :mcqueer:

edit:
if i edit code like this

Code: Select all

/**
* @package module_install
*/
class acp_donation_info
{
	function module()
	{
		return array(
			'filename'			=> 'acp_donation',
			'title'				=> 'ACP_DONATION_MOD',
			'ts_version'		=> '1.0.2',
			'adjust_topstats'	=> array('title' => 'DONATION_CONFIG', 
			'auth' => 'acl_a_board', 
			'cat' => array('ACP_DONATION_MOD')),
			);
	
	}
}
page work :oops:

ACP error

Posted: 22 Nov 2011, 18:58
by Stoker
Please do me a favour and try this too and then tell me if it works:

Code: Select all

<?php
/**
*
* @author Stoker 4.0
* @package Donation MOD
* @version $Id: acp_donation.php, v1.0.2 20011/20/11 07:19:43 Exp $
* @copyright (c) 2011 Stoker 4.0 
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package module_install
*/
class acp_donation_info
{
	function module()
	{
		return array(
			'filename'			=> 'acp_donation',
			'title'				=> 'ACP_DONATION_MOD',
			'ts_version'		=> '1.0.2',
			'modes'		=> array(
				'configuration'	=> array('title' => 'DONATION_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('ACP_DONATION_MOD')),
			),
		);
	}
	
	function install()
	{
	}

	function uninstall()
	{
	}
}

?>

ACP error

Posted: 22 Nov 2011, 20:12
by Arnevb
Where exactly do I have to put the code?

ACP error

Posted: 22 Nov 2011, 20:15
by Stoker
Its the code of the includes/acp/info/acp_donation.php file.
Just replace the entire code with the one posted.

Or you can use this files instead, just upload them to the correct folders
includes.zip
(2.36 KiB) Downloaded 103 times