Skip to content

Elgg script problem

edited September 2012 in Need Help
Hi guys,

need help with elgg script. I have got a few errors like this one:

14:56:46: [+] 1/1 matches engine Elgg - http://areaclienti.nicolasavino.com/pg/register/
14:56:46: [+] 1/1 login successful - http://areaclienti.nicolasavino.com/
14:56:46: [+] 1/1 new URL - http://areaclienti.nicolasavino.com/pg/profile/Evelyne7
14:56:46: [+] 1/1 new URL - http://areaclienti.nicolasavino.com/pg/profile/Evelyne7/editicon/
14:56:46: [-] 1/1 required variable "url" was not used in form.

If you take a look manually at submission process on this site, you will see that there after login, there are two similar urls that match this line in elgg.ini:

find url=*edit.php?username=%login%*|*/%login%/edit|*%login%*edit*|*edit*%login%

there is http://areaclienti.nicolasavino.com/pg/profile/Evelyne7/edit (the one we need) and http://areaclienti.nicolasavino.com/pg/profile/Evelyne7/editicon - to edit icon of your profile.

My questions are: how does it work here? GSA tries randomly one of patterns in "find url" and if it is successful, it stops and tries to fill data? How to protect it to not go to the wrong /editicon/ url?

Well i think removing of *%login%*edit* part would be enough...or change it just to *%login%*edit...but i think it could kill some sites that would be submitted otherwise, not sure here...

thansk a lot!


Comments

  • OzzOzz
    edited September 2012
    thats odd. "find url=*/%login%/edit"  matches "/Evelyne7/edit" in your case.

    SER should click that link once has found it to get to the "edit profile"-site. i don't have an answer why it visits the icon-site instead. did you try to manually register to that site to see if there happens something unusual?

    because it is on the edicon-site its no wonder that "URL" was not found in form.

    maybe this helps:
    url must have=!*/editicon


  • thx for quick answer. Manually it goes normally, i press "Edit details", it goes to ../edit and i am able to edit everything.

    So you say that the software goes one by one, checks if *edit.php?username=%login%* does exist, then */%login%/edit and then *%login%*edit*? It doesnt look like that, it seems it goes randomly to me => goes to *%login%*edit* and find ../editicon url, otherwise it would found the */%login%/edit url and would try to post there. I will try the url must have=!*/editicon you suggested, but where to place it? Before find url command?

    I have another question: i dont know how to test it quickly. I have an account created, how to try to post on it several times until it will succeed? I though i can just delete the  project_hosts_done file but it doesnt help...

    THX a lot
  • >So you say that the software goes one by one,...
    no, the software checks if one of the possible links in "find url=" matches with the links it has found on the site. all possible matches are seperated by a "|". in your case it has found the second match "*/%login%/edit".

    once the link is found by SER it will click that link.

    i didn't have much experience with "url must have=" and don't know if that works. however, you could place it below "find url=". actually i think it doesn't matter if above or below.
    i'm sure Sven will visit this thread soon enough and give you the rigth advice or fix. i'm just guessing here.

    to post to that site again you have to delete your "history cache": 
    right click project options -> modify project -> delete target url history
  • >in your case it has found the second match "*/%login%/edit"

    :-) thats the problem, it should but has not. About half of site is not working because SER goes to /editicon and hence founds no place to submit URL. I have removed  *%login%*edit*, added url must have=!*/editicon but it is still the same...

    I think we need Sven to find a solution for this one...

    thx 
  • OzzOzz
    edited September 2012
    according to your log it has:

    but it change the url somehow to that:
    14:56:46: [+] 1/1 new URL - http://areaclienti.nicolasavino.com/pg/profile/Evelyne7/editicon/

    i'm pretty sure Sven will fix this very soon.
  • line 230: form url=*/profile/edit

    just guessing again, but I think that this line needs to be fixed then:
    form url=*/profile/edit|*profile/%login%/edit

    when "areaclienti.nicolasavino.com/pg/profile/Evelyne7/edit" is the url to edit the profile.
  • I tried this as well, program still goes to /editicon

    Sven, please help :)
  • SvenSven www.GSA-Online.de
    fixed + added blog posting as well
  • Eh fixed means it will be fixed in next update? Do you know when it will be released?

    thanks a lot! best support EVER!
  • Sven said that update is coming today. But you never know what happens.

    However, next update should be huge.
Sign In or Register to comment.