Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 28. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Report Extension Problem

phpMyEdit Features     Report Extension Problem
Odoslať novú tému   Odpovedať na tému    
 
tussin     Založený: 09.05.2005   Príspevky: 2  
Príspevok Zaslal: 2005-05-09 18:53
Návrat hore  Odpovedať s citátom     

Hi, I'm new to this script, but so far it Rocks!

I am however, having a problem with the reports extension. I am using phpMyEdit 5.4 and the latest CVS version of the report extension.

The last few lines of my calling program are as follows:

// Now important call to phpMyEdit
//require_once 'phpMyEdit.class.php';
//new phpMyEdit($opts);
require_once 'extensions/phpMyEdit-report.class.php';
new phpMyEdit-report($opts);
?>


Now when I access my calling program in my browser, I get the following errors:

Warning: Missing argument 1 for phpmyedit() in /home/mydomain/public_html/cases/phpMyEdit.class.php on line 2829

Warning: array_keys(): The first argument should be an array in /home/mydomain/public_html/cases/phpMyEdit.class.php on line 2595

Warning: Invalid argument supplied for foreach() in /home/mydomain/public_html/cases/phpMyEdit.class.php on line 2595

Warning: array_keys(): The first argument should be an array in /home/mydomain/public_html/cases/phpMyEdit.class.php on line 2605

Warning: Invalid argument supplied for foreach() in /home/mydomain/public_html/cases/phpMyEdit.class.php on line 2605

Warning: array_keys(): The first argument should be an array in /home/mydomain/public_html/cases/phpMyEdit.class.php on line 2631

Warning: Invalid argument supplied for foreach() in /home/nilomd/public_html/cases/phpMyEdit.class.php on line 2631

Fatal error: Maximum execution time of 30 seconds exceeded in /home/mydomain/public_html/cases/phpMyEdit.class.php on line 2661


Anyone out there have any idea what I am doing wrong?

Thanks!

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2005-05-09 21:41
Návrat hore  Odpovedať s citátom     

I don't know what the answer to this particular problem is, but you might want to try using the latest CVS version of PME. Extensions often need the latest CVS version rather than the release version.

 
tussin     Založený: 09.05.2005   Príspevky: 2  
Príspevok Zaslal: 2005-05-10 01:27
Návrat hore  Odpovedať s citátom     

Well, I just updated to the latest CVS, but still no luck - same problems.

Am I supposed to add any parameters to my fields in the calling program?

 
jimbob     Založený: 18.05.2005   Príspevky: 5  
Príspevok Zaslal: 2005-05-18 12:24
Návrat hore  Odpovedať s citátom     

In the top of the report extension file ther will be a line like

Kód:
require_once dirname(__FILE__).'/../phpMyEdit.class.php';


Make sure the path to the original phpMyEdit.class.phph is corrrect.

 
plimbach     Založený: 21.05.2005   Príspevky: 1  
Príspevok Zaslal: 2005-05-21 02:52
Návrat hore  Odpovedať s citátom     

I have figured out that there is a bug in all the documentations (or is it in phpMyEdit-report.class.php). The call to the report class has to be as follows:

Kód:

require_once 'extensions/phpMyEdit-report.class.php';
new phpMyEdit_report($opts);


notice the underscore at phpMyEdit_report($opts). It is not a dash, as always assumed in the documentations.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov