9 months ago
Fri May 31 2024, 10:00PM
I have a simple bar graphic with just one serie. When adding a second serie component to the form, I think I set the properties correctly: chart, datasource, datafielddata and datafieldtitle.
The application stops running with this error messages:
PHsPeed exception report.
2022-06-01 13:33:06 | (error 999 in line [] of file [])
2022-06-01 13:33:06 |runtime error: [error: call to a member function registerserie() on null in c:\phspeed\xampp\htdocs\ceda\_libs\test_dbchartdbserie_2.php:20
stack trace:
#0 c:\phspeed\xampp\htdocs\_libs\php\spapplication.php(347): test_dbchartdbserie_2->__assign(object(test))
#1 c:\phspeed\xampp\htdocs\ceda\test.php(274): spapplication->init('m', array, array, array)
#2 {main}]
When checking the properties AFTER running the form, the values are empty again (the chart, datasource, datafielddata and datafieldtitle values are empty).
If I remove the serie component the form runs again.
Environment:
PHsPeed V2.1.0 B20 - X64
PHP 8.0.0
Under Windows 11 Pro Spanish x64
9 months ago
Fri May 31 2024, 10:00PM
As the sample on this website is using the same version, I wonder what is going wrong. Can you create a small failing sample and send it to support? We'll have a look.
9 months ago
Fri May 31 2024, 10:00PM
UPDATE:
Under version 2.2 the error still shows.
But I found that adding a DBGrid to the form solves the error.
So, if you have an empty form and added
- a DBTable
- a DataSource
- a Chart
- a chartDBSerie
If you set the values for the "chart", "datasource", "datafieldtitle" and "datafielddata" properties in the chartDBSerie, the dissapear when you save/run the form, and you get the registerSerie() error.
But if you add a DBGrid to the form, and THEN set the chartDBSerie properties, they work correctly.
9 months ago
Fri May 31 2024, 10:00PM
Thnx. We will try to replicate the issue, and fix it.