Login   Register  
PHP Classes
elePHPant
Icontem

Undefined index in QGoogleGraph.class.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      QGoogleVisualizationAPI  >  All threads  >  Undefined index in QGoogleGraph.class.php  >  (Un) Subscribe thread alerts  
Subject:Undefined index in QGoogleGraph.class.php
Summary:When running sample files, I get undefined index in QGoogleGraph
Messages:9
Author:Andres
Date:2008-12-06 04:46:27
Update:2009-04-25 08:09:24
 

  1. Undefined index in QGoogleGraph.class.php   Reply   Report abuse  
Picture of Andres
Andres
2008-12-06 04:46:27
First, the following files in the zip & tar.gz are missing the *.class.php (in fact, they have no extension)

- QAnnotatedtimelineGoogleGraph
- QMapGoogleGraph
- QMotionchartGoogleGraph
- QScatterchartGoogleGraph
- QWordcloudGoogleGraph


This is a fresh unzip.

Also, I'm trying to run the sample files but receive 'undefined index' notices. Here's an example for sample.bar.php

Notice: Undefined index: values in C:\...\util\qgooglevisualapi\QGoogleGraph.class.php on line 175, 176, 179, 201
Call Stack
# Time Memory Function Location
1 0.0099 71360 {main}( ) ..\sample.bar.php:0
2 0.0463 647672 QVizualisationGoogleGraph->render( ) ..\sample.bar.php:43
3 0.0464 650272 QVizualisationGoogleGraph->prepare( ) ..\QVizualisationGoogleGraph.class.php:709
4 0.0481 654640 QVizualisationGoogleGraph->buildPropertyObject( ) ..\QVizualisationGoogleGraph.class.php:672
5 0.0484 657512 QGoogleGraph->checkProperties( ) ..\QVizualisationGoogleGraph.class.php:528

The chart displays after all these notices, but I get this for almost all samples.

Any help would be appreciated. Thanks in advance.

  2. Re: Undefined index in QGoogleGraph.class.php   Reply   Report abuse  
Picture of Tom Schaefer
Tom Schaefer
2008-12-06 09:52:38 - In reply to message 1 from Andres
Hi, Thx for your request.
I justed tested a fresh archive. Your are right. There are missing file suffixes for some files. These files are registered with the correct suffix, but they are generated without suffix. I do not know why. I do write to the admin and ask what happened there.

Meanwhile just rename them to the correct notation:

QAnnotatedtimelineGoogleGraph.class.php
QMapGoogleGraph.class.php
QWordcloudGoogleGraph.class.php

When the files are renamed as shown above, the samples will run perfectly.
Regards Tom

  3. Re: Undefined index in QGoogleGraph.class.php   Reply   Report abuse  
Picture of Andres
Andres
2008-12-06 19:59:03 - In reply to message 2 from Tom Schaefer
Tom,

Thank you for your quick response. I'm sorry if my post wasn't clear in stating that the two issues were unrelated. I did rename the files and added the missing .class.php, but continue to have the "undefined index: values" issue with several of the sample files.

Here is the stack trace for sample.column.php:

( ! ) Notice: Undefined index: values in C:\ppm8-dev\app\classes\infinitymetrics\util\qgooglevisualapi\QGoogleGraph.class.php on line 201
Call Stack
# Time Memory Function Location
1 0.0228 71440 {main}( ) ..\sample.column.php:0
2 0.0851 669392 QVizualisationGoogleGraph->render( ) ..\sample.column.php:38
3 0.0851 671992 QVizualisationGoogleGraph->prepare( ) ..\QVizualisationGoogleGraph.class.php:709
4 0.0898 676280 QVizualisationGoogleGraph->buildPropertyObject( ) ..\QVizualisationGoogleGraph.class.php:672
5 0.0905 680480 QGoogleGraph->checkProperties( ) ..\QVizualisationGoogleGraph.class.php:528

I get the same message on other samples as well.

Thanks again for your help with this issue.

Best,

Andres

  4. Re: Undefined index in QGoogleGraph.class.php   Reply   Report abuse  
Picture of Tom Schaefer
Tom Schaefer
2008-12-07 15:27:30 - In reply to message 3 from Andres
Sorry, me too. I cannot reproduce this error.
Maybe you tell me something about the php version and the environment your are using.

I downloaded the zip archive and all is well.


  5. Re: Undefined index in QGoogleGraph.class.php   Reply   Report abuse  
Picture of poc
poc
2008-12-18 23:08:06 - In reply to message 4 from Tom Schaefer
hi,

i downloaded the zip dated 2008-09-07 and once i corrected the file names in the folder i ran the samples, the charts do display but there is still an "Undefined index:" error. Might this be related to the autoload() function in the config.ini.php script. i only just started with the package. my php version is 5.2.6 and apache 2.2.4.

schone tag,
P

[Thu Dec 18 22:58:42 2008] [notice] Apache/2.2.4 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Thu Dec 18 22:58:42 2008] [notice] Server built: Jan 9 2007 23:17:20
[Thu Dec 18 22:58:42 2008] [notice] Parent: Created child process 4308
[Thu Dec 18 22:58:42 2008] [notice] Child 4308: Child process is running
[Thu Dec 18 22:58:43 2008] [notice] Child 4308: Acquired the start mutex.
[Thu Dec 18 22:58:43 2008] [notice] Child 4308: Starting 250 worker threads.
[Thu Dec 18 22:58:43 2008] [notice] Child 1768: Released the start mutex
[Thu Dec 18 22:58:44 2008] [notice] Child 1768: Waiting for 250 worker threads to exit.
[Thu Dec 18 22:58:44 2008] [notice] Child 1768: All worker threads have exited.
[Thu Dec 18 22:58:44 2008] [notice] Child 1768: Child process is exiting
[Thu Dec 18 22:58:44 2008] [notice] Child 4308: Starting thread to listen on port 80.
[Thu Dec 18 23:00:31 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: values in C:\\projects\\xxxx\\web\\php\\qgoogle\\QGoogleGraph.class.php on line 201

  6. Re: Undefined index in QGoogleGraph.class.php   Reply   Report abuse  
Picture of Andres
Andres
2008-12-22 03:45:33 - In reply to message 4 from Tom Schaefer
Tom,

Sorry for the delayed response --your message went to my junk folder so it wasn't until poc's post that I read yours.

I'm running Apache 2.2.9 (Win32), PHP 5.2.6.

Thanks again,

Andres

  7. Re: Undefined index in QGoogleGraph.class.php   Reply   Report abuse  
Picture of Tom Schaefer
Tom Schaefer
2008-12-22 09:02:26 - In reply to message 6 from Andres
I tested it with restrictive error warnings. It works for me.
Seems to be a local problem. I added catchline to avoid the error you
described.
So hopefully it will run for you, too.
Merry X-Mas

  8. Re: Undefined index in QGoogleGraph.class.php   Reply   Report abuse  
Picture of Falko Rhein
Falko Rhein
2009-04-24 19:58:43 - In reply to message 7 from Tom Schaefer
i got the same problem.
but only in comination with my symfony 1.1 i got the "undefined index: values" in the QIGoogleGraph-Class.
if i try it in the htdocs-folder of my apache, everything works fine...

the console of my firebug says:

[Exception... "'Error: Container is not defined' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]

to that...
i've installed an Apache/2.2.11 (Win32) and php 5.2.9.

have a nice weekend

falko

  9. Re: Undefined index in QGoogleGraph.class.php   Reply   Report abuse  
Picture of Tom Schaefer
Tom Schaefer
2009-04-25 08:09:24 - In reply to message 8 from Falko Rhein
I am aware of these failures.
I have no influence on extracting the correct spelling of the files. In the respository all is correct. But when extracting some files are corrupted.

The fireBug is already known. When you reload the chart it is vanishing. It happens sometimes. But I do not know when. There is no regular pattern to identify this failure.

Best Regards
Tom Schaefer