Thread subject: muscapaul's PHP-Fusion website :: Error Reports Infusion v3.xx

Posted by muscapaul on 25-07-2008 16:44
#1

Error Reports Infusion v3.xx', 'New version: v3.00

A simple system to collect error reports from members on your site, to comment on these and to track/change their status (Open, response Added, Closed). A Latest Error Reports side panel is available to alert to to any error reports. The Panel only shows when error reports were made during the last 15 days. Their status is indicated by '0' for Open, '|' for Response Added and '_' for Closed.

Remark:
Upgrade of the Error Reports Infusion as available for PHP-Fusion v6 from the main PHP-Fusion site.

Changes:
- Fully updated to comply with PHP-Fusion v7.00 and for XHTML 1.0 compliancy.
- Latest Error Reports Panel updated to only show the errors that were reported during the l5 days and to show their status.

Upgrading from PHP-Fusion v6 to PHP-Fusion v7:
Please note, if you want to upgrade you Error Reports Infusion during a PHP-Fusion version upgrade from v6 to v7, there is no need to defuse the infusion. There will be no error messages as long as you upload the infusion files at the same time as the PHP-Fusion files. When you upload the infusion files, you can simply overwrite the existing ones.
PHP-Fusion v7 utilises a somewhat different system for administering admin rights for Infusions. In v6 it used to be a single setting that gave rights to all Infusions. Under the new version every infusion will be given its own code for admin rights. As a result it is necessary to run an upgrade script (../infusions/error_reports/v6-7upgrade.php) that will at least at the rights for the primary Superadministrator. The file has checkboxes to indicate whether all superadmins should be given access rights to the Error Reports Infusion and/or whether all admins with Infusion Administration rights should be given those rights.
This script only needs to be run if a site is upgraded from PHP-Fusion v6 to v7. Even though a check has been built in to prevent the script from being run after the upgrade has already been performed, it is advised to delete the script from your server after upgrading.

DOWNLOAD (last version: 28.07.2008)
* double locale definition removed from ../locale/English.php (would not have caused errors but is still out of place ;)) (28.07.2008; thx to SiteMaster)
* added Danish locale (28.07.2008; thx to SiteMaster)

Edited by muscapaul on 18-09-2008 13:10

Posted by Diemux on 26-07-2008 19:03
#2

Hey, de download link wijst naar de verkeerde download :) (PM full)
(http://www.muscapaul.com/downloads.php?cat_id=6&download_id=41)

Moet zijn:

http://www.muscapaul.com/downloads.php?cat_id=6&download_id=51

Posted by muscapaul on 26-07-2008 21:24
#3

Corrected.

Posted by W3C_Valid on 28-07-2008 02:06
#4

translated to Danish

removed one line in Englosh.php $locale['err164'] = "Closed";
it was there 2 times ;)

Posted by muscapaul on 28-07-2008 16:40
#5

Processed. ;)

Posted by helmuth on 03-08-2008 17:56
#6

attached revised Danish locales for v7_error_reports_v3.00.28.07.2008 ;)

Posted by HobbyMan on 04-08-2008 19:01
#7

In error_reports.php line 42

Code
$result = dbquery("INSERT INTO ".DB_ERROR_REPORTS." (error_user, error_summary, error_version, error_description, error_response, error_status, error_datestamp) VALUES('".$userdata['user_id']."', '$error_summary', '$error_version', '$error_description', '', '".$locale['err142']."', '".time()."')");




There is no $locale['err142'] in the locale which results in;

Notice: Undefined variable: error_status in /home/xxxxxx/public_html/infusions/error_reports/error_reports.php on line 139

Edited by HobbyMan on 04-08-2008 19:02

Posted by muscapaul on 04-08-2008 19:26
#8

Unfortunate typo. Should be 162...

Posted by muscapaul on 04-08-2008 19:34
#9

New version: v3.01

Changes:
v3.01 (muscapaul)
- Typo resulting in bug in error_reports.php corrected (thx to HobbyMan).
- Updated Danish locale added (thx to helmtuh).

DOWNLOAD (last version: 18.09.2008)
* Turkish and Polish locale files added (18.09.2008)

Edited by muscapaul on 18-09-2008 13:13

Posted by Pieka on 04-09-2008 17:48
#10

Polish locale attached (iso/utf-8).

Edited by Pieka on 04-09-2008 17:54

Posted by MAxwELL_TR on 12-09-2008 17:26
#11

New version: v3.01
Turkish Language File (T?rk?e Dil Dosyası) Added

Posted by muscapaul on 18-09-2008 13:11
#12

Download updated.

Posted by Smokeman on 29-11-2008 21:00
#13

Hi.

I'm getting an error with the latest version:

Notice: Undefined variable: error_status in C:\WM\www\hjemmeside\infusions\error_reports\error_reports.php on line 74

- line 74 looks like this:
Code
echo "<td class='tbl1'>".$error_status."</td>\n";



Posted by muscapaul on 03-12-2008 00:35
#14

Under what circumstances did you get this error. DO you have an upgraded version?

Posted by edi18028 on 27-10-2009 02:12
#15

I installed newest version Error Reports in PHP-Fusion 7.00.05 and I couldn't submit errors. They don't appear in database. My webpage doesn't show any errors or warnings. What I did wrong? I downloaded mod from this page. Anybody have idea what's going on? :|

Posted by muscapaul on 27-10-2009 03:53
#16

Did you infuse it...?

Posted by edi18028 on 27-10-2009 07:20
#17

Problem solved. Problem was with error_status. I must changed code.
Line 42
Code

         $result = dbquery("INSERT INTO ".DB_ERROR_REPORTS." (error_user, error_summary, error_version, error_description, error_response, error_status, error_datestamp) VALUES('".$userdata['user_id']."', '$error_summary', '$error_version', '$error_description', '', '".$locale['err162']."', '".time()."')");




changed on
Code

         $result = dbquery("INSERT INTO ".DB_ERROR_REPORTS." (error_user, error_summary, error_version, error_description, error_response, error_status, error_datestamp) VALUES('".$userdata['user_id']."', '$error_summary', '$error_version', '$error_description', '', '0', '".time()."')");




and lines where
Code

      if ($data['error_status'] == '0') {
         $error_status = $locale['err162'];
      }
      if ($data['error_status'] == '1') {
         $error_status = $locale['err163'];
      }
      if ($data['error_status'] == '2') {
         $error_status = $locale['err164'];
      }
      echo "<td class='tbl1'>".$error_status."</td>\n";




i changed on
Code

      if ($data['error_status'] == '0') {
        echo "<td align='center' class='tbl1'>".$locale['err162']."</td>\n";
      }
      if ($data['error_status'] == '1') {
        echo "<td align='center' class='tbl1'>".$locale['err163']."</td>\n";
      }
      if ($data['error_status'] == '2') {
        echo "<td align='center' class='tbl1'>".$locale['err164']."</td>\n";
      }




Now it's working fine

Edited by edi18028 on 27-10-2009 18:24

Posted by masteredu on 06-01-2010 02:30
#18

thx now it works, but whats with this error ?

Code
Notice: Undefined variable: error_status in /tchost/edu/web/fusion/infusions/error_reports/error_reports.php on line 74



Posted by muscapaul on 06-01-2010 12:18
#19

What language (locale) do you use?

Posted by masteredu on 06-01-2010 19:04
#20

muscapaul wrote:
What language (locale) do you use?


german

Edited by masteredu on 06-01-2010 20:37