phpraid_dir

This addon will synchronize the resistances of your guild with phpRaid

Moderator: Diska

phpraid_dir

Postby m80falcon » Fri Jul 14, 2006 1:18 pm

Hi,

I want to use the phpRaid sync, but I always get the following error :

Your phpRaid installation could not be found! Please check that $phpraid_dir is set properly in conf.php


This is the conf.php and the phpraid directory is located under <roster basedir>/phpraid. I think the setting is right, if I dont get it wrong how to configure it.


<?php
$phpraid_user = 'user';
$phpraid_pass = 'pw';
$phpraid_host = 'localhost';
$phpraid_name = 'name';
$phpraid_prefix = 'phpraid_';

// location of phpRaid directory relative to roster
// DO NOT include a trailing slash
$phpraid_dir = '../phpraid';
?>
m80falcon
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Fri Jul 07, 2006 8:23 pm

phpraid_dir

Postby Diska » Fri Jul 14, 2006 1:53 pm

Change this line:
Code: Select all
$phpraid_dir = '../phpraid';


to:

Code: Select all
$phpraid_dir = 'phpraid';
User avatar
Diska
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 179
Joined: Tue Jul 04, 2006 2:05 pm

phpraid_dir

Postby m80falcon » Fri Jul 14, 2006 3:46 pm

great, thx !
m80falcon
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Fri Jul 07, 2006 8:23 pm

phpraid_dir

Postby scapegoat » Mon Jul 24, 2006 2:00 am

I have this same problem, but my structure is different.

I have everything integrated into phpNuke, so my structure is as follows

<site root> \ modules \ phpraid
<site root> \ modules \ roster
<site root> \ modules \ roster \ addons \ phpraid (for the sync addon)

what exactly should I have my phpraid_dir line equal to, like above?
scapegoat
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Tue Jul 11, 2006 12:31 am

phpraid_dir

Postby Diska » Mon Jul 24, 2006 5:04 pm

It should be just the default setting: $phpraid_dir = '../phpraid';
If that's not working, experiment with it a bit because phpnuke is probably running the scripts form another dir or something like that.

An alternative could be to insert an absolute path to the phpraid dir.

Eg., your html dir is located in /var/www, phpraid is in /var/www/phpraid, then use this: $phpraid_dir = '/var/www/phpraid';
Last edited by Diska on Mon Jul 24, 2006 5:05 pm, edited 1 time in total.
User avatar
Diska
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 179
Joined: Tue Jul 04, 2006 2:05 pm

phpraid_dir

Postby scapegoat » Mon Jul 24, 2006 6:03 pm

hey, thanks!

the default setting didn't work, but using the absolute path as you sugggested seems to work great!

If anyone has a better alternative, let me know, but it looks like I may be all set.
scapegoat
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Tue Jul 11, 2006 12:31 am

phpraid_dir

Postby jc230285 » Wed May 28, 2008 10:55 pm

$phpraider_dir = '\home\content\j\c\2\jc230285\html\guild\raid';

WoW Roster -> phpRaid Guild/Character Synchronization

Warning: main(home\content\j\c\2\jc230285\html\guild\raid\includes\database.php): failed to open stream: No such file or directory in /home/content/j/c/2/jc230285/html/guild/roster/addons/phpRaider/index.php on line 36

Warning: main(home\content\j\c\2\jc230285\html\guild\raid\includes\database.php): failed to open stream: No such file or directory in /home/content/j/c/2/jc230285/html/guild/roster/addons/phpRaider/index.php on line 36

Warning: main(): Failed opening 'home\content\j\c\2\jc230285\html\guild\raid\includes\database.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/j/c/2/jc230285/html/guild/roster/addons/phpRaider/index.php on line 36

Fatal error: Cannot instantiate non-existent class: sql_db in /home/content/j/c/2/jc230285/html/guild/roster/addons/phpRaider/index.php on line 38
same problem
jc230285
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Thu Jul 13, 2006 5:08 pm

phpraid_dir

Postby PleegWat » Thu May 29, 2008 2:41 am

Looks like you need to use /forward slashes/ rather than \backslashes\. The errors indicate you're on a unix box.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

phpraid_dir

Postby jc230285 » Thu May 29, 2008 11:23 pm

Thanks alot never would of seen that went into the index.php
Line36 include($phpraider_dir . '/includes/database.php');
and
$phpraider_dir = '../raid'; in the config
jc230285
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Thu Jul 13, 2006 5:08 pm


Return to phpRaid Synchronization

Who is online

Users browsing this forum: No registered users and 0 guests

cron