Having an issue with UU & DF

Dragonfly integration forum

Having an issue with UU & DF

Postby Psoewish » Sun Sep 09, 2007 2:03 am

Hey, I'm having a bit of a problem configuring my DF to work with UU.

I've set everything up good, but at the step I'm having trouble is the following:

At some point you have to make sure that the UU agent gets access to DF by bypassing the cookie check.

It said you have to look for the following code in includes/cmsinit.inc
Code: Select all
/******************************************************************************
  Check if the <form> POST is comming from this server
*******************************************************************************/
if (!is_user() && $_SERVER['REQUEST_METHOD'] == 'POST' && empty($CPG_SESS['user']['uri']))
   {
      if (PHPVERS >= 43) {
         trigger_error('<pre>'.print_r($CPG_SESS, true).'</pre>', E_USER_WARNING);
      }
   cpg_error('Please enable cookies to post on this site. If you feel that you have reached this message in error please go back to the preceding page and post again');
   }

and replace this with
Code: Select all
/******************************************************************************
  Check if the <form> POST is comming from this server
*******************************************************************************/
if (!substr($_SERVER['HTTP_USER_AGENT'], 0, 11 ) == 'UniUploader' )
{
   if (!is_user() && $_SERVER['REQUEST_METHOD'] == 'POST' && empty($CPG_SESS['user']['uri']))
   {
      if (PHPVERS >= 43) {
         trigger_error('<pre>'.print_r($CPG_SESS, true).'</pre>', E_USER_WARNING);
      }
   cpg_error('Please enable cookies to post on this site. If you feel that you have reached this message in error please go back to the preceding page and post again');
   }
}


This fixes the issue I'm having with UU, it connects, uploads and downloads everything I need too.

HOWEVER, this also brings up a new issue with DF itself. Whenever I browset o my website I get the following errors on top of my page:
Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /home/psoewish/public_html/includes/cmsinit.inc:1) in /home/psoewish/public_html/includes/cmsinit.inc on line 59

Warning: ini_set() [ref.outcontrol]: Cannot change zlib.output_compression - headers already sent in /home/psoewish/public_html/includes/cmsinit.inc on line 70


Now this also seems to mess with some layout stuff (my font gets bigger for one) and it's really bothersome.

Now I'm asking if anything would have a solution so that I can get UU to bypass the cookie check, AND get my site to still function "normal".

Thanks in advance
Psoewish
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Wed Sep 05, 2007 5:47 pm

Having an issue with UU & DF

Postby Anaxent » Sun Sep 09, 2007 4:58 am

ah that was from the first time I tried getting UU to work with DF now it should be much easier as DF has a security module that you can just add the user agent of UU to.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

Having an issue with UU & DF

Postby Psoewish » Sun Sep 09, 2007 5:33 am

Hmm I allready added the security agent line actually. That one fixed the 403 I was getting when I tried to connect, but the cookie issue is till there though ...

Code: Select all
INSERT INTO cms_security_agents
VALUES ('UniUploader', 'UniUploader', 'wowroster.net', 'http://wowroster.net/Forums/c=4.html', '0', 'Auto Updater for WoWRosterDF');


This is the one you mean, right? I have inserted that one in my cms_security_agent table, in fact this was the very first step I've done :)
Psoewish
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Wed Sep 05, 2007 5:47 pm

Having an issue with UU & DF

Postby zanix » Sun Sep 09, 2007 5:50 am

Is your roster module set to anonymous access?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Having an issue with UU & DF

Postby Anaxent » Sun Sep 09, 2007 7:17 am

and you have added the additional url variables to the uu settings and are using a site username/pwd when you upload via UU

When I get home ill grab the additional vars from some reason I just can not remember them at this time.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

Having an issue with UU & DF

Postby Psoewish » Sun Sep 09, 2007 9:51 am

Let's see.

@ zanix: I have set it so everybody can access my roster

@Anaxent: I have 2 additionals vars:

-username
-password

of course both filled in with my username and password. But I don't think the problem lies with UnUplader here actually, since this connects just fine. It also connects with UniAdmin to download updated mods just like it's supposed to, but when I need to connect to DF to upload my savedvariables.lua - I get the cookie problem.

Oh and I'm also the person updating the roster so I'm the one with GuildProfiler installed as well. Could this be the problem for it not working? Or should it just manage to upload the Character data?

If this is the problem, would it work with my guild people which just have CharacterProfiler then?
Psoewish
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Wed Sep 05, 2007 5:47 pm

Having an issue with UU & DF

Postby Anaxent » Sun Sep 09, 2007 11:10 am

Ok try this

ulogin
user_password
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

Having an issue with UU & DF

Postby Psoewish » Sun Sep 09, 2007 5:51 pm

Hmm still having the same error :(

This is what the server response tab gives me:
Code: Select all
<!-- ############ Uploading to Primary URL...
     ############ http://guildnoir.elementfx.com/WoWRosterDF/update.html -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>ERROR</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<meta name="robots" content="noarchive" />
<link rel="stylesheet" href="includes/css/cpg.css" type="text/css" />
</head>
<body><center>
<table class="table1"><tr><td>
  <table class="head">
  <tr>
<!--<td width="212" align="left"><img src="images/logo.gif" border="0" alt="CPG-Nuke" title="CPG-Nuke" /></td> -->
    <td align="center" class="header">ERROR</td>
<!--<td width="212" valign="bottom"><img align="right" height="22" width="202" src="images/shout.gif" alt="" title="" /></td> -->
  </tr>
  </table>
  <table class="table1"><tr><td align="center">
<center>Please enable cookies to post on this site. If you feel that you have reached this message in error please go back to the preceding page and post again</center><br /><br />[ <a href="javascript:history.go(-1)">Go Back</a> ]
  </td></tr></table>
</td></tr></table>
</center></body></html>


And the debug tab says:
Code: Select all
[2007/09/09 11:48:46] Uploading to Primary URL...: http://guildnoir.elementfx.com/WoWRosterDF/update.html
[2007/09/09 11:48:46] CharacterProfiler.lua - 85% Compressed. Upload Size: 47,84 KB
Psoewish
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Wed Sep 05, 2007 5:47 pm

Re: Having an issue with UU & DF

Postby lnwulf » Tue Jan 08, 2008 7:22 am

has there ever been a resolution to this? I am having the same issue using UU 2.6.7, DF 9.1.2.1, and WoWRosterDF.
User avatar
lnwulf
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Sat Dec 15, 2007 5:19 am

Having an issue with UU & DF

Postby MattM » Tue Jan 08, 2008 11:07 am

may i have a url to test with?
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

Re: Having an issue with UU & DF

Postby lnwulf » Sat Jan 12, 2008 5:16 am

I fixed it...but I haven't figured it out yet exactly LOL if I can figure out what I did I'll post an update :)
User avatar
lnwulf
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Sat Dec 15, 2007 5:19 am

Having an issue with UU & DF

Postby MattM » Tue Jan 22, 2008 11:08 am

dang

edit: that information could be valuable for others.
Last edited by MattM on Tue Jan 22, 2008 9:19 pm, edited 1 time in total.
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

Having an issue with UU & DF

Postby MattM » Sat Jun 14, 2008 2:32 pm

anyone know if this is a problem still? I have a rewritten upload class for UU i can try if so.
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

Having an issue with UU & DF

Postby Anaxent » Sat Jun 14, 2008 8:30 pm

I have UU 2.6.8 Beta working with Dragonflycms and the roster 2.0 beta ported to dragonfly.

Setting the post vars is key for making this work
var1= ulogin
var2 = user_password

These 2 veriables are needed to authenticate with df you will also need to make sure that you turn off the unknown security agents so UU can post tot ahe site.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron