New Triggers dont appear to fire

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

New Triggers dont appear to fire

Postby robweeks » Sat Feb 17, 2007 7:21 pm

It looks like the new Triggers that were implemented arnt firing in trigger.php

The SDK states:
- $mode = when you want to run the trigger
= 'char_pre' - before character updates
= 'char' - during a character update
= 'char_post' - after character updates
= 'guild_pre' - before guild updates
= 'guild' - during a guild update
= 'guild_post' - after guild updates


When i run my trigger with this code (not in an if block):

Code: Select all
echo "Mode = ".$mode." ";


This is output (from char saving)
Code: Select all
Mode = char Saving Sig-[  ] Saving Avatar-[  ]


This is the output (from the guild update)
Code: Select all
Updating Guild [Stasis]
Member Log
Updated: 50
Added: 0
Removed: 0
Updating Members
[ Jones ]
Mode = guild [ Ninijho ]
Mode = guild [ Palomino ]
Mode = guild [ Expliqui ]
Mode = guild [ Felony ]
Mode = guild [ Krizter ]
Mode = guild [ Wharmag ]
Mode = guild [ Xcriminal ]
Mode = guild [ Brutalizer ]
Mode = guild [ Nosferatim ]
Mode = guild [ Surma ]
Mode = guild [ Leninja ]
Mode = guild [ Thurkie ]
Mode = guild [ Soulman ]
Mode = guild [ Cleo ]
Mode = guild [ Berilaco ]
Mode = guild [ Salabam ]
Mode = guild [ Neller ]
Mode = guild [ Trancemusic ]
Mode = guild [ Ap ]
Mode = guild [ Kevmcd ]
Mode = guild [ Gruffipriest ]
Mode = guild [ Stasispankki ]
Mode = guild [ Isneaky ]
Mode = guild [ Webox ]
Mode = guild [ Shelest ]
Mode = guild [ Tofte ]
Mode = guild [ Kittykat ]
Mode = guild [ Gronke ]
Mode = guild [ Akagaado ]
Mode = guild [ Silinda ]
Mode = guild


As you can see none of the pre and posts are available, which i need for my trigger :) Any ideas?

Im using Roster 1.7.3
ImageImage
robweeks
WR.net Apprentice
WR.net Apprentice
 
Posts: 45
Joined: Tue Jul 04, 2006 8:17 pm

New Triggers dont appear to fire

Postby PleegWat » Sun Feb 18, 2007 12:45 am

Mine are firing fine, but it does indeed seem like your extra triggers aren't running. Could you paste the whole log please? maybe they're just not exactly where you expect them.
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

New Triggers dont appear to fire

Postby robweeks » Mon Feb 19, 2007 1:18 am

here ya go

Code: Select all
<!-- ############ Uploading to Primary URL...
     ############ http://localhost/roster/update.php -->

Parsing files
Parsed PvPLog in 0.09 seconds
Parsed CharacterProfiler in 0.23 seconds
Updating Character [Serepis]
Serepis is not in the list of guild members so their data will not be inserted.
Updating Character [Hebe]
Hebe is not in the list of guild members so their data will not be inserted.
Updating Character [Rosedust]
Rosedust is not in the list of guild members so their data will not be inserted.
Updating Character [Soulelf]
Soulelf is not in the list of guild members so their data will not be inserted.
Updating Character [Satet]
Satet is not in the list of guild members so their data will not be inserted.
Updating Character [Soulman]
About to update player
Updating Equipment
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Updating Inventory
: Bag5
: Bag4
: Bag0
: Bag1
: Bag2
: Bag3
Updating Bank
: Bag2
: Bag3
: Bag0
: Bag1
Updating Mailbox:
24 Messages
Updating Skills
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Updating Professions
: Cooking
: First Aid
: Tailoring
Updating Spellbook
: Demonology
: General
: Affliction
: Destruction
Updating Talents
: Demonology
: Affliction
: Destruction
Updating Reputation
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Updating Quests:
15
Updating Buffs:
3
Updating pet [Haatom]
Updating pet [Kraglos]
Mode = charSaving Sig-[  ] Saving Avatar-[  ]
Updating Character [Picus]
Picus is not in the list of guild members so their data will not be inserted.
Updating Character [Bonus]
Bonus is not in the list of guild members so their data will not be inserted.
Updating PvP Data for [Soulman]
Updating PvP data
Wins: 245
Losses: 104
Set PvP ratio to 2.35576923077
Updating Guild [Stasis]
Member Log
Updated: 48
Added: 0
Removed: 0
Updating Members
[ Jones ]
Mode = guild[ Ninijho ]
Mode = guild[ Palomino ]
Mode = guild[ Expliqui ]
Mode = guild[ Silinda ]
Mode = guild[ Krizter ]
Mode = guild[ Wharmag ]
Mode = guild[ Xcriminal ]
Mode = guild[ Brutalizer ]
Mode = guild[ Nosferatim ]
Mode = guild[ Surma ]
Mode = guild[ Leninja ]
Mode = guild[ Thurkie ]
Mode = guild[ Soulman ]
Mode = guild[ Cleo ]
Mode = guild[ Berilaco ]
Mode = guild[ Salabam ]
Mode = guild[ Neller ]
Mode = guild[ Trancemusic ]
Mode = guild[ Ap ]
Mode = guild[ Akagaado ]
Mode = guild[ Gruffipriest ]
Mode = guild[ Stasispankki ]
Mode = guild[ Shelest ]
Mode = guild[ Kittykat ]
Mode = guild[ Webox ]
Mode = guild[ Damoon ]
Mode = guild[ Tofte ]
Mode = guild[ Isneaky ]
Mode = guild[ Kerd ]
Mode = guild[ Moomom ]
Mode = guild[ Rossignol ]
Mode = guild[ Ratty ]
Mode = guild[ Reise ]
Mode = guild[ Beth ]
Mode = guild[ Shadowslayer ]
Mode = guild[ Intensepain ]
Mode = guild[ Deathcrawler ]
Mode = guild[ Gronke ]
Mode = guild[ Ebobish ]
Mode = guild[ Disc ]
Mode = guild[ Vesta ]
Mode = guild[ Ragingpoo ]
Mode = guild[ Ktulu ]
Mode = guild[ Exedius ]
Mode = guild[ Zevss ]
Mode = guild[ Rottenman ]
Mode = guild[ Urlgen ]
Mode = guild
Guild: Horde of Heroes @ Server: Twisting Nether Ignored
Guild: The Myrmidon @ Server: Twisting Nether Ignored
Guild: Chaotic Order @ Server: Twisting Nether Ignored
ImageImage
robweeks
WR.net Apprentice
WR.net Apprentice
 
Posts: 45
Joined: Tue Jul 04, 2006 8:17 pm

New Triggers dont appear to fire

Postby PleegWat » Mon Feb 19, 2007 8:43 am

You must be checking on the mode somewhere. Your character triggers aren't firing either.
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

New Triggers dont appear to fire

Postby robweeks » Mon Feb 19, 2007 9:36 am

i assure you im not, i will post my trigger.php file when i get home from work
ImageImage
robweeks
WR.net Apprentice
WR.net Apprentice
 
Posts: 45
Joined: Tue Jul 04, 2006 8:17 pm

New Triggers dont appear to fire

Postby robweeks » Mon Feb 19, 2007 9:16 pm

And here is the trigger

Code: Select all
<?php
/******************************
 * $Id: trigger.php,v 1.7.2 2006/06/14 09:30:17 zanix Exp $
 ******************************/
 
if ( !defined('ROSTER_INSTALLED') )
{
    exit('Detected invalid access to this file!');
}
 
/*
   Start the following scripts when "update.php" is called
 
   Available variables
      - $wowdb       = roster's db layer
      - $member_id   = character id from the database ( ex. 24 )
      - $member_name = character's name ( ex. 'Jonny Grey' )
      - $roster_conf = The entire roster config array
      - $mode        = when you want to run the trigger
         = 'char_pre'   - before character updates
         = 'char'       - during a character update
         = 'char_post'  - after character updates
         = 'guild_pre'  - before guild updates
         = 'guild'      - during a guild update
         = 'guild_post' - after guild updates
 
   You may need to do some fancy coding if you need more variables
 
   You can just print any needed output
 
*/
//----------[ INSERT UPDATE TRIGGER BELOW ]-----------------------
 
// Run this on a character update
echo "Mode = ".$mode;
if( $mode == 'guild_pre' ) {
 echo "pre baby";   
}
 
// Run this on a guild update
if( $mode == 'guild_post' ) {
    echo "post baby";
}
?>
ImageImage
robweeks
WR.net Apprentice
WR.net Apprentice
 
Posts: 45
Joined: Tue Jul 04, 2006 8:17 pm

New Triggers dont appear to fire

Postby PleegWat » Mon Feb 19, 2007 10:34 pm

Works fine here. Log:

Code: Select all
<!-- ############ Uploading to Primary URL...
     ############ http://leegwater-68.demon.nl/Roster/update.php -->

Parsing files
Parsed CharacterProfiler in 0.17 seconds
Parsed PvPLog in 0.7 seconds
Mode = char_preUpdating Character [Azymyrta]
About to update player
Updating Equipment
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Updating Inventory
: Bag5
: Bag4
: Bag0
: Bag1
: Bag2
: Bag3
Updating Bank
: Bag5
: Bag4
: Bag0
: Bag1
: Bag2
: Bag3
Updating Mailbox:
17 Messages
Updating Skills
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Updating Professions
: Tailoring
: First Aid
: Cooking
Updating Spellbook
: Demonology
: Destruction
: Affliction
: General
Updating Talents
: Demonology
: Affliction
: Destruction
Updating Reputation
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Updating Quests:
17
No Buffs
Updating pet [Tangtaz]
Updating pet [Jhuuthun]
Updating pet [Unknown]
Updating pet [Ghaakun]
Updating pet [Nokmat]
Mode = char
Updating Character [Azymonda]
About to update player
Updating Equipment
.
.
.
.
.
.
.
.
.
.
.
.
.
Updating Inventory
: Bag4
: Bag0
: Bag1
: Bag2
: Bag3
No Bank Data
Updating Mailbox:
No New Mail
Updating Skills
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Updating Professions
: Tailoring
: First Aid
Updating Spellbook
: Fire
: Frost
: General
: Arcane
Updating Talents
: Fire
: Frost
: Arcane
Updating Reputation
.
.
.
.
.
.
.
.
.
Updating Quests:
12
No Buffs
Mode = char
Updating Character [Azyjupido]
About to update player
Updating Equipment
.
.
.
.
.
.
.
.
.
Updating Inventory
: Bag4
: Bag0
: Bag1
: Bag2
: Bag3
No Bank Data
Updating Mailbox:
No New Mail
Updating Skills
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Updating Professions
: Cooking
: Mining
: First Aid
: Blacksmithing
Updating Spellbook
: Protection
: Holy
: General
: Retribution
Updating Talents
: Protection
: Holy
: Retribution
Updating Reputation
.
.
.
.
.
.
Updating Quests:
9
Updating Buffs:
1
Mode = char
Updating Character [Azyplagat]
Azyplagat is not in the list of guild members so their data will not be inserted.
AltMonitor - 0 alts added to main  - Main written
Mode = char_postNOT Updating PvP for [Azymyrta] - 0.6.1
The version of PvPLog used to capture data for this character is older than the minimum version allowed for upload.
Please ensure you are running at least v2.3.1, and if you have just updated your PvPLog, ensure you deleted your old PvPLog.lua Saved Variables file prior to updating.
NOT Updating PvP for [Azymonda] - 0.6.0
The version of PvPLog used to capture data for this character is older than the minimum version allowed for upload.
Please ensure you are running at least v2.3.1, and if you have just updated your PvPLog, ensure you deleted your old PvPLog.lua Saved Variables file prior to updating.
Updating Guild [the everlasting wind]
Member Log
Updated: 54
Added: 0
Removed: 0
Updating Members
Mode = guild_prepre baby[ Sharpshoter ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Azaraka ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Firesham ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Golamo ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Menlon ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Ferreg ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Golama ]
AltMonitor - No main match
- Main
- With alts
Mode = guild[ Balake ]
AltMonitor - Main: Golama
- Alt of Golama
- Alt of Main
Mode = guild[ Azymonda ]
AltMonitor - Manual or per-character entry
Mode = guild[ Menegroth ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Azymyrta ]
AltMonitor - Manual or per-character entry
Mode = guild[ Grateno ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Cashdefender ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Azyjupido ]
AltMonitor - Manual or per-character entry
Mode = guild[ Lifedrain ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Yamono ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Savagequake ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Bugstar ]
AltMonitor - No main match
- Main
- With alts
Mode = guild[ Dryneax ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Mizuti ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Cooldown ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Zupatoll ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Gyos ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Hollowtusk ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Viscount ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Xavarash ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Darkrangers ]
AltMonitor - Main: Bugstar
- Alt of Bugstar
- Alt of Main
Mode = guild[ Wurrmal ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Bugstaralt ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Azzmaster ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Aiwan ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Mankin ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Honalulu ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Aarseter ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Horchan ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Glowbo ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Hofsuger ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Boriscrusher ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Demonchainer ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Oekbah ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Sorf ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Groente ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Thavlan ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Dhmoon ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Illiidan ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Theflint ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Sudden ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Telwbank ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Skywalkernl ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Urgal ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Broken ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Rogt ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Icespitter ]
AltMonitor - No main match
- Main
- No alts
Mode = guild[ Gorginio ]
AltMonitor - No main match
- Main
- No alts
Mode = guild
AltMonitor - 0 records without matching member records deleted
Mode = guild_postpost baby
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

New Triggers dont appear to fire

Postby robweeks » Tue Feb 20, 2007 1:02 am

il try reinstalling roster

EDIT:

Deleted Roster completly and cleaned DB. Now its working.

Cheers for the help
Last edited by robweeks on Tue Feb 20, 2007 1:18 am, edited 1 time in total.
ImageImage
robweeks
WR.net Apprentice
WR.net Apprentice
 
Posts: 45
Joined: Tue Jul 04, 2006 8:17 pm


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron