Server
Drupal 7.26 on Fedora 13,
site name 'anodyne'
LAN address 10.1.1.77/anodyne
PHP..
PHP version 5.3.6
GD 2.0.34 installed
PHP mem limit 128MB
Libraries
SVGraph V2.16 installed in /sites/all/libraries
libraries module installed (can't tell which version)
Modules
Forena PDF Generator
Forena Query Builder
Forena Reports
I have read ALL the doco I can find, and have followed instructions as far as I can
Watched David Metzler's videos.
Issue ..
using IE9 on another box on the LAN,
- when I navigate to http://10.1.1.77/anodyne/reports/sample.state.graph,
I just see a grey rectangle, above what appears to be the data for the graph, in text form
- when I navigate to http://10.1.1.77/anodyne/reports/sample.state_summary_ie8,
I get a nice graph, and tabular report beneath.
It seems to me that my install cannot find the SVGraph library?
Any assistance with next steps appreciated
If I navigate to
Comment | File | Size | Author |
---|---|---|---|
#35 | error.png | 43.8 KB | rgriffiths99 |
#34 | graph99.png | 74.43 KB | rgriffiths99 |
#33 | final_result.png | 70.56 KB | rgriffiths99 |
#32 | after_click_preview.png | 27.76 KB | rgriffiths99 |
#31 | add_data3.png | 28.26 KB | rgriffiths99 |
Comments
Comment #1
metzlerd CreditAttribution: metzlerd commentedCan you verify that your input formats are set correctly... in particular that none of the following are checked for the input format used by forena:
Display any HTML as plain text
Limit allowed HTML tags
Convert URLs into links
Convert line breaks into HTML
Correct faulty and chopped off HTML
Also visit:
http://forenasolutions.org/reports/sample.svg_demo
So that we can verify that it isn't a browser issue. (Sorry in advance for the slow site performance... cheap shared hosting you know).
Comment #2
rgriffiths99 CreditAttribution: rgriffiths99 commentedDavid, thank you
I had been 'ticking and unticking' those boxes,
experimenting as one of the doco's suggested.
But I just checked, and three were still ticked.
I un-ticked them, and presto, I can raise sample.state_graph,
and sampl.svg_demo also runs fine
I'm now off to my site to see if I can build a report/graph
in the /dashboard section of my site.
Once more, thank you, for time and assistance
Russell
Comment #3
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedHey Russell, happy to notice you've given my advice a try. Sorry to read that you struggled a bit with the typical input format requirement (as described in the setup guide). From your last comment, I seem to understand the "original issue" (= grey rectangle in state_grpah) is resolved now.
I'd be curious to read another update about the outcome of the custom report/graph you're working on now (in this issue here, or otherwise in the forum topic linked to above). Especially to hear about your perception of the (free) SVG Graph library as compared to the free or commercial version(s) of the jPGraph library.
PS: forena does not require the "libraries" module, what made you add that module? Maybe because of another module that requires it, such as the JpGraph module?
Comment #4
rgriffiths99 CreditAttribution: rgriffiths99 commentedGentlemen, good morning
Still struggling to get a graph out
It seems my version of Forena (/root/forena-7.x-4.0.tar.gz)
doesn't match the one David Metzler uses in his YouTube Tutorials
Following them on a two-screen .. my setup in one, his Tutorial in other,
I get to where we specify the graph and screens get 'different' and I can't follow exactly.
it happens 4m17secs into 'Forena Graphing 1', just as he hits 'Create'
I get what shows in Screenshot1.png
After adding data from my stored query, and adding 'svg' as a doc type, and saving, I finally get to Screenshot3.png,
but when I click on 'svg' all I get is Screenshot4.png.
also .. I can't find the 'add where clause' panel in creating the data block .. it never appears
and if I put my (eg) "where colour="white" bit in the sql panel, it crashes that with an error message about 'column not found', referring to the "white" text. Maybe we can address this once I get a basic graph up.
And David asked me to paste this bit in .. the contents of presentation1.frx
tag here is there?, despite my specifying it as a chart/graph. Are we close? Advice appreciated, as ever OOPS .. Screenshots seem to have appeared a few screens up, rather than hereI think I might have use the contents of growth1.frx last time .. sorry for confusion
But there's no
Comment #5
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedRussell, sorry to hear you're struggling 'a bit'.
About the version you're using as compared to the videos: the most recent 7.x-4.0 version (which you seem to be using) is indeed the recommended version (it is the latest and greatest). If you think it can help to refine your issue details (comment), consider adding the title of the video you are referring to, e.g. via a cut-and-past of that from the community docu about available videos. And add something like "near 3:47 after the video started". That'll give us a pretty good idea what exactly you are referring to. If you're referring to any of the videos related to the prior versions (like the 7.x-3.x), then keep in mind that most of what's in them still applies, but the "user interface" has changed in the current version. I think David is planning to create a refresh of those videos using the 7.x-4.x version "some day" (when time permits?).
With what is now in your comment #4, I suggest you try to "repair" that comment (because "if we don't understand the issue, we cannot get it fixed", right?).
Not sure how familiar you are with using the available facilities on drupal.org to create/update issues, so here are a few suggestion about that (sorry if I'm just repeating things you already know, just trying to help, OK?):
Comment #6
metzlerd CreditAttribution: metzlerd commentedAlso you could paste the snippet of the svg graph into a code section like this:
By seeing what the graph example looks like we might be able to point out anomalies.
Comment #7
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #8
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #9
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedThanks for refining the issue details Russell. 1 more question: where within the body tags do you have something with an svg tag with that FrxSVGGraph renderer, similar that what David mentioned in #6? If you excluded it from the code you pasted, please "edit" the pasted code. If it just isn't anywhere (which I start to assume), then THAT is the direction to continue working on. Because if such SVG tag is not included, forena's output you currently get is what your report specification includes (ie: just a report, no SVG graph to be inserted).
If you want to edit your report by just editing your FRX file (instead of using the WYWiWYG editor, i suggest you look at the source (frx fie) of the svg_demo sample, then cut-and-paste any of the svg related content from there, and tweek it to match your needs.
Maybe David will have other suggestions? If not may we say "your turn again"?
PS: that "doc type" of SVG you added is only to later on "save" (or export) your report/graph (don't get confused with "inserting an SVG inside your report"). And since your report output doesn't contain an svg tag yet, your ...4.png output is correct (= empty) for now.
Comment #10
metzlerd CreditAttribution: metzlerd commentedAlso looks like from the fact that we don't see the SVG icons on the edit screen that there are still potentially tags being stripped or mucked with in your html. Is this the same site that you are referring to in Comment #2? Are there other things in your text format that may be interferring with the display of SVG data?
Sorry this is being so rough for you.
Comment #11
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedDavid, sorry for questioning "the expert" (aka you), but because of Russels's "I can raise sample.state_graph, and sampl.svg_demo also runs fine" in #2, it appears to me that the text format config should be OK, at least if it is indeed the same site. Am I right in assuming that those would not display correct either if the typical text format setup is not completed yet? FYI: My "bet" is that the svg tag with the SVGGraph renderer is missing. Curious to read Russell's next update ...
Comment #12
metzlerd CreditAttribution: metzlerd commentedI totally could be wrong, but I was responding to the absence of the "pencil" and "gear" icons in the snapshot. These are currently SVG icons and it makes me wonder why they are text instead. Feel free to question me any time. There may be other things going on here in addition to that.
Dave
Comment #13
rgriffiths99 CreditAttribution: rgriffiths99 commentedGentlemen good afternoon
As suggested by Pierre, at least as I understand his suggestion,
I edited my .frx file, and copied in an image from the sample_svg
I also cut it down to the bare minimum that would work .. ie produce a graph.
It's now just ..
Not sure what that proves, except that my system is capable of showing a graph if the .frx file contains the right code.
What I'm struggling with is working out how to PRODUCE the graph from the data in my database,
and the report setup screens as I'm using them don't seem to be working (for me).
Here's the screenshot of what I get when I try to follow instructions .. (unfortunately 2, top of form, and bottom .. can't work out how to get it all on one.)
please see Screenshot5.png and screenshot6.png
There's an error at the bottom about 'Not enough Values' that I don't understand .. the table I include seems to work, why not the graph?
Is there a step I'm missing, or a field I've left blank that needs attention
I can 'smell' success ..
ps .. there are only 9 graphs/tables in the Dashboard on our website.
I'm happy to create the .frx files manually just to get them up, if we can't get the Forena report generator to work, altho getting it to work is the best option.
Comment #14
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedRussell, looks likes your new attempt is not as I suggested in my #9 comment: you used an embed-tag in which you refer to a graph with a .svg at the end. However in #9 I suggested an svg-tag instead, something for which the syntax looks like what David mentioned in #6. It appears to me that at this time it may not be obvious to you to use the frx editing approach (yet). Therefor, to get started, you should consider retrying using the WYSIWYG editor approach to get that chart "automagically" inserted by forena. Something similar to what you can see starting from about 6:00 minutes in the 2nd video of the 7.x-4.x series. Note that in that video David nowhere had to edit the frx file (only the SQL file earlier on in that video). After you get your chart show up and save it, you might then want to look at how the frx file content looks like.
1 more hint (if that might help): the tabular output you get so far corresponds to some "data block" you added in your report. If you ALSO want a graph (probably related to the same data to be shown), you MUST "insert" another data block (like before the previous block you already have). And in that (inserted) data block, you then have to specify that you want a "graph" to show those data, which is also what David does at some point in his video. Just adding this because when I at first started with charting in forena, it took me some time before I realised that.
To be complete: your " ... working out how to PRODUCE the graph from the data in my database ..." is exactly how it should (and does) work, also shown in that video above. Pretty sure your 'success' is close also. So please hang on, keep trying, and asking where needed, ok?
PS: in case David is a bit less responsive the coming days, might be because he's digesting the turkey and/or pumpkins (thanksgiving).
Comment #15
rgriffiths99 CreditAttribution: rgriffiths99 commentedGoing back to creating the graph
can you tell from looking at the error message at the bottom of Screenshot6.png
what's wrong/missing from my creation step?
I do actually specify that I want a graph (see Screenshot5.png, the top of the same block)
I create a data block (no probs with that) using ..
'growth' is the table containing the age/height pairs
works fine generating the table, just WON'T generate the graph.
I obviously have some error on this page that I can't see.
Maybe your eyes can?
as ever .. your help is appreciated
Comment #16
metzlerd CreditAttribution: metzlerd commentedCould you post the middle section of the screen shot showing the detected columns? You should have age specified as the label? Is that true?
Comment #17
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedTo Russell: looking at the screenshots (5 and 6) I just don't see anything that rings a bell about what is still wrong. If you are able to SAVE the report (frx file), can you try to copy it to a file with a txt extension, and then attach that txt file to the issue also? Especially I'd want to "see" the part of it with the SVG tag and the renderer in it. Such as what are the "field names" (surrounded by curly braces) that are used for the series and the labels (look at the frx file of the svg_demo sample to get an idea of what I'm looking for).
To David: could it be related to that "Not enough Values" as mentioned in #13?
Comment #18
rgriffiths99 CreditAttribution: rgriffiths99 commentedScreenshot10.png is the middle, as David requests.
Comment #19
rgriffiths99 CreditAttribution: rgriffiths99 commentedand I haven't been able to save it to a report file
because I can't get past this error
I pasted an svg tag block into a functioning table report (presentation1) .. same data
but it didn't produce a graph either.
BUT .. if pasting the CORRECT snippet in here WOULD produce a graph from my data block
then I'd consider that success .. I only have to repeat that 9 times.
A look at the top of the Dashboard I'm trying to produce is Screenshot11.png, just so you can see where I'm heading
Comment #20
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedAha, "now" we have something to look at. I did some eyeballing and compared it with what's included in the frx file for the svg_demo, located at http://cgit.drupalcode.org/forena/tree/repos/reports/sample/svg_demo.frx
Here are a few frx:-options within the svg tag I have "new" questions about (some of them might explain the "Not enough values" error msg):
Comment #21
metzlerd CreditAttribution: metzlerd commentedFrom Screenshot 10, check the include table box, and change the radio for column age to "label", presss preview and show me what you get.
Comment #22
metzlerd CreditAttribution: metzlerd commented@Pierre.
Regarding 1. No that is unnecessary. The sample states graph demonstrates that.
Regarding 2. xpath="*" is the default so no problem there.
Regarding 3. I can't remember whether type is defaulted, I think it's required.
Comment #23
metzlerd CreditAttribution: metzlerd commentedI would expect the following to work. Provided SVG is displayable on the web site.
Comment #24
rgriffiths99 CreditAttribution: rgriffiths99 commentedduhh .. so many graph attempts
i think im sending mixed bits,
will delete EVERYTHING and start fresh
Comment #25
rgriffiths99 CreditAttribution: rgriffiths99 commentedok here we go
did what David requested, as shown in screen shots
create_report.png, add_data1.png, add_data2.png, and add_data3.png
what I see after I hit Preview (and this is where I see different from the video)
is in 'after_click_preview.png
the final result is shown in final_result.png
and the contents of height.frx is ..
That's everything as far as I can tell
no graph, but some data strings
Comment #26
rgriffiths99 CreditAttribution: rgriffiths99 commentedAlso, created a report graph99.frx with David's 'I would expect this to work' code snip
but all I get is graph99.png,
.. the graph appears.!! so I'm off to see if I can produce some of my main graphs this way. will let you know Result : no go. Up against the 'SQLSTATE[42S22]:' error message .. see error.png, that objects to my 'where clause'. This is what I have in 'dashboard1.sql' in /sites/default/files/data .. and this in dashboard1.frx So it looks like I'll have to keep struggling until I can get Forena working properly Who'd have thought it would be so #@! hard???but if I click
Comment #27
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedHey Russell, "sunrise in EU again" ... Can't see/find any of the 6 png files you mentioned in #25, maybe you forgot to attach them?
Also it looks like my frx:type in #20 somehow got confirmed by David in#22, though he made some typos in the numbering he used to refer to my #20 (he swapped 2 and 3). So to eliminate the doubts if frx:type is yes/no required, make sure you do specify that in your next experiments.
Curious to soon see your next status updates ...
Comment #28
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #29
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #30
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #31
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #32
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #33
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #34
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #35
rgriffiths99 CreditAttribution: rgriffiths99 commentedComment #36
rgriffiths99 CreditAttribution: rgriffiths99 commentedPierre .. did it again .. i didn't realize I had to click 'save' as well as 'upload'
but still think i'm doing comments wrong .. must find a manual or howto for using this site
and good morning to you in EU.
It's cocktail hour here down under.
Comment #37
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedNow I'm really running out of inspiration, except that we can now see that funny string of data below where the chart should be shown. So I rechecked the various comments again starting from my #20. And the "regarding 1" in David's #22 ... I'm sorry to question "the master" (aka David) again, but the sample state graph does NOT illustrate what David wrote there. Instead, if I look at http://cgit.drupalcode.org/forena/tree/repos/reports/sample/state_graph.frx I see an frx:block within the svg tag. So I'd be really curious to know what result Russell would get by editing the frx files in #26 (either one or both), by ONLY "moving" the frx:block from the DIV tag to the SVG tag.
If that doesn't help either, at this time I do not have any other ideas for further debugging, except "maybe":
About sunset in EU again right now ... (and time for cocktail hour over here now ... just can't find the cocktail "bar" ...).
Comment #38
metzlerd CreditAttribution: metzlerd commentedPierre, this is the one I was talking about that shows the block in an enclosing tag.
http://cgit.drupalcode.org/forena/tree/repos/reports/sample/state_summar...
The sql error is because you are using double quotes where you should be using single quotes. I still believe that your input formats are mucking with your svg after the graph is being generated. That is why you see the numbers only.
Also be sure to add a column label to your count(1) column.
Comment #39
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedOk David, the state_summary you pointed to in #38 indeed convinces me now, but since you first mentioned 'state graph' I thought you were talking about ... Euh ... Indeed ... State_Graph, sorry I got confused on that. Thanks for the SQL error stuff also.
Actually I'm also starting to believe "must be the input format". I suggest Russell will try to proof us with 2 more screenprints (a) which input format he is using for forena and (b) the typical tuning for the selected format are correctly set. So that we can eliminate that as a possibility. While trying to create those screenprints, maybe something unexpected becomes visible that actually will resolve the remaining mystery ... If that doesn't help, I would really like to LOOK at his site as I suggested before (with a login account).
Comment #40
rgriffiths99 CreditAttribution: rgriffiths99 commentedAs an aside to working this out,
I've been looking at asking MySQL to output the query result as XML
It's happy to do this .. see -> http://dba.fyicenter.com/faq/mysql/Return-Query-Output-in-XML-Format.html
Maybe if I can get Forena to cooperate (for me) with data in XML,
since I can't seem to get my 'where' clauses to work in the data block.
Thoughts?
Comment #41
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedRussell, #40 does not help at all to "me" (and I'm curious if it'll help David ...). Rather the opposite, in my opinion it just complicates things even more, because to me it provokes more questions.
Please confirm you applied the SQL changes suggested by David in #38, and add the 2 screenprints I asked in #39. The way I usually try to resolve support requests, is to eliminate all possible causes, verifying, verifying and verifying. Sometimes I add to that "I'll believe it after I've seen with my own eyes", which is why I asked the question in my 3rd bullet in #37.
Comment #42
metzlerd CreditAttribution: metzlerd commentedFYI: I found the time to do a brief Skype with Russell. Confirmed the primary problem was Text Format config. Also corrected the SQL, so I think Russell is in business for now.
Comment #43
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedBecause of #42, it appears to me that the current status of this issue (as described in the title of this issue also) should be different from ACTIVE. Is it FIXED now? If new issues came up, please create a new issue for it.
Comment #44
metzlerd CreditAttribution: metzlerd commentedI think we can call this fixed. Rusell, please change case status to active if you have more troubles.
Comment #45
rgriffiths99 CreditAttribution: rgriffiths99 commentedThis advice fixes the prob in hand, thanks guys
Comment #46
rgriffiths99 CreditAttribution: rgriffiths99 commented