ULX

Author Topic: ERS - EMail Reporting System  (Read 30611 times)

0 Members and 3 Guests are viewing this topic.

Offline Shadow132

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: ERS - EMail Reporting System
« Reply #60 on: February 01, 2015, 11:40:29 AM »
Some how I get and error and it says.
Code: [Select]
[ERROR] addons/ers/lua/autorun/server/configurations.lua:35: function arguments expected near '='
        1. unknown - addons/ers/lua/autorun/server/configurations.lua:0

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ERS - EMail Reporting System
« Reply #61 on: February 01, 2015, 12:13:30 PM »
Looks like you didn't edit the configuration file properly. Can you past the contents of your configuration file to pastebin.com and give me the link so I can see.
Or at the very least, what is on line 35?

Offline KrazyHD

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: ERS - EMail Reporting System
« Reply #62 on: February 20, 2015, 12:37:17 AM »
This doesn't work for me. The report menu doesn't show up for me.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ERS - EMail Reporting System
« Reply #63 on: February 20, 2015, 12:48:36 AM »
There are too many issues with this plugin.
I thought it was a good idea, and it works for me, but it seems a lot of hosts don't allow it or something because there have been quite a number of people saying they can't get it to work.

I'm sorry, but it comes as-is. If it works for you, great! If not, sorry.

Offline DarKevin

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
  • sup
Re: ERS - EMail Reporting System
« Reply #64 on: March 27, 2015, 09:56:34 PM »
I fixed it ;D

I changed the headers from this:

Code: [Select]
$to = strip_tags($_POST["sendto"]);

$headers = "From: no-reply@g4p.org\r\n";
$headers .= "Reply-To: no-reply@g4p.org\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

if($type=="PLAYER REPORT")

to this:

Code: [Select]
$to = strip_tags($_POST["sendto"]);


$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "Reply-To: no-reply@g4p.org\r\n";
$headers .= "From:" . $from;

if($type=="PLAYER REPORT")

Apparently the MIME part needs to be the first header, without a " . " before the " = ".
Also, for some reason it seems that the $from header MUST be at the bottom to make it work.

I basically have no experience with PHP, so I cant tell if you just made a mistake, or if it only fixed it for me, because my webserver is retarded or something :P
But it should give you a clue.

I hope that helped.

Good luck!

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ERS - EMail Reporting System
« Reply #65 on: March 27, 2015, 11:33:26 PM »
That's odd. It's hard for me to tell, because it's always worked for me with no issues.
If anyone else who's not had luck with this can confirm with me if this fixes it for them too, I would be happy to update the addon accordingly.

thanks for your input. I hope this works for others as well.

Offline Jerpy

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Re: ERS - EMail Reporting System
« Reply #66 on: March 28, 2015, 03:01:29 AM »
Just wanted to add this, since I am not sure if anyone else has seen this. Anytime a report is sent at all, in chat it will throw out that the report failed, didnt send, and in server console it also says this: "Aborting HTTP request because pResponse->BSetBodyData() failed. URL: /storage/report.php" /storage/report.php being the location of course. Now the interesting thing about this is that the report itself makes it no problem to the set email, and I have tested this on all of my servers, and it is the same outcome. All reports go through, but it says error in both server-console and in-game. Because it seems to have no effect, what I decided to do for now is basically just change the in-game chat error reporter to the success message aswell, so now whatever happens it just says success since it would seem it'll say fail. Has anyone else gotten this?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ERS - EMail Reporting System
« Reply #67 on: March 28, 2015, 01:59:19 PM »
Odd.. I wonder if they changed something with the http functions in this latest gmod update.

Offline DarKevin

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
  • sup
Re: ERS - EMail Reporting System
« Reply #68 on: March 28, 2015, 08:00:41 PM »
Mine always says Report sent successfully, even when it didn't work before. And I only changed report.php

Offline Stormy178

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: ERS - EMail Reporting System
« Reply #69 on: October 16, 2015, 05:30:04 AM »
After some time looking at the forums configuration files for NFO servers, I have found out that you have to have it set to the admin email address, the one used to create your communities forums page, in case anyone uses NFOservers for hosting.