Little PHP Help >.>

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Everything Else » Tech Support » Little PHP Help >.>
Little PHP Help >.>
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2009-09-21 10:35:24
Link | Quote | Reply
 
My event LS asked me to slot a dkp system onto their in-development website, so I grabbed a copy of EQDKP Plus and installed it. After finishing the installation and getting to the point where I should be logging in, I get this error:

Parse error: parse error, unexpected T_STRING, expecting '{' in /var/www/intolerancels/dkp/pluskernel/cache/cache_none.class.php on line 29

Now, generally speaking, I don't have any issues with those errors, normally. Though I've pulled up this file, and I can't find anything wrong with it, so I resorted to simply sticking random "{" in places around Line 29. I've found that if I add a "{" to the start of Line 29, I get the same error, but this time it's on Line 30, so that doesn't really seem to be doing much >_>

The contents of /pluskernel/cache/cache_none.class.php are:

<?php
/*
* Project: EQdkp-Plus
* License: Creative Commons - Attribution-Noncommercial-Share Alike 3.0 Unported
* Link: http://creativecommons.org/licenses/by-nc-sa/3.0/
* -----------------------------------------------------------------------
* Began: 2007
* Date: $Date: 2009-06-11 16:32:38 +0200 (Do, 11 Jun 2009) $
* -----------------------------------------------------------------------
* @author $Author: sz3 $
* @copyright 2007-2008 sz3
* @link http://eqdkp-plus.com
* @package eqdkp-plus
* @version $Rev: 5051 $
*
* $Id: cache_mysql_sq.class.php 5051 2009-06-11 14:32:38Z sz3 $
*/

if ( !defined('EQDKP_INC') )
{
die('Do not access this file directly.');
}

if ( !interface_exists( "plus_datacache" ) ) {
require_once($eqdkp_root_path . 'pluskernel/cache/cache.iface.php');
}

if ( !class_exists( "cache_none" ) ) {
class cache_none implements plus_datacache{

function init($params_array){
}

function put($key, $value, $ttl=' '){
return false;
}

function get($key){
return null;
}

function del($key){
return null;
}

function del_prefix($prefix){
return null;
}

function del_suffix($suffix){
return null;
}

function cleanup(){
return null;
}

function flush(){
return null;
}

function listing(){
return null;
}

}//end class
}//end if
?>

Anyone have any ideas what the problem could be? I've googled around for a few hours and got nothing that works ; ; (Bolded Line 29)

Thanks for any help!~
-Hit
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2009-09-23 01:48:37
Link | Quote | Reply
 
User submitted image

But yeah.. bump >_>

I know we have php wizards in ffxiah land!
 Diabolos.Chibixzero
Offline
Server: Diabolos
Game: FFXI
Posts: 204
By Diabolos.Chibixzero 2009-09-23 02:56:11
Link | Quote | Reply
 


there you go.
<?php
/*
* Project: EQdkp-Plus
* License: Creative Commons - Attribution-Noncommercial-Share Alike 3.0 Unported
* Link: http://creativecommons.org/licenses/by-nc-sa/3.0/
* -----------------------------------------------------------------------
* Began: 2007
* Date: $Date: 2009-06-11 16:32:38 +0200 (Do, 11 Jun 2009) $
* -----------------------------------------------------------------------
* @author $Author: sz3 $
* @copyright 2007-2008 sz3
* @link http://eqdkp-plus.com
* @package eqdkp-plus
* @version $Rev: 5051 $
*
* $Id: cache_mysql_sq.class.php 5051 2009-06-11 14:32:38Z sz3 $
*/

if ( !defined('EQDKP_INC') )
{
die('Do not access this file directly.');
}

if ( !interface_exists( "plus_datacache" ) ) {
require_once($eqdkp_root_path . 'pluskernel/cache/cache.iface.php');
}

if ( !class_exists( "cache_none" ) ) {
class cache_none implements plus_datacache){ /*<-- you needed the ) before the {*/

function init($params_array){
}

function put($key, $value, $ttl=' '){
return false;
}

function get($key){
return null;
}

function del($key){
return null;
}

function del_prefix($prefix){
return null;
}

function del_suffix($suffix){
return null;
}

function cleanup(){
return null;
}

function flush(){
return null;
}

function listing(){
return null;
}

}//end class
}//end if
?>
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2009-09-23 04:59:28
Link | Quote | Reply
 
Hmm, still spitting out the same error ><'

Notepad2 doesn't seem to be finding a matching "(" for the ")" you tagged on either ><;
 Diabolos.Chibixzero
Offline
Server: Diabolos
Game: FFXI
Posts: 204
By Diabolos.Chibixzero 2009-09-23 05:16:21
Link | Quote | Reply
 
you using the orignal dkp or the modded version of it?
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2009-09-23 05:23:30
Link | Quote | Reply
 
The original atm, I tried using the modded version before that and got the same errors, so I figured I'd do it bit-by-bit this time instead of doing the entire thing.

http://www.eqdkp-plus.com/download.php?view.72

This is the version I'm using (0.6.0.3 Stable). I also have the FFXI set downloaded but not installed yet.

EQDKP download section
Log in to post.