Welcome Guest, Not a member yet? Register   Sign In
[Solved] Error when using Open Flash Chart 2 plugin
#1

[eluser]Abu eldahab[/eluser]
Hello All,

I download Open Flash Chart 2 plugin form here
http://codeigniter.com/wiki/Open_Flash_Chart_2/
And followed the Instructions
Quote:1) Drop the contents of the ‘application’ folder into your application folder
2) Drop the ‘assets’ folder into your webroot (next to your index.php file)
3) Open your.hostname.com/index.php/ofc2


And got this error when run the Controller ofc2

Quote:$url): ?>
JSON

An Error Was Encountered
The URI you submitted has disallowed characters.

i tried to change
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

in my config.php put still giving same error


i'm using Codeigniter 1.7.2 and php 5.3.0 with WAMP and windows xp

can any one help me please ?

Regards
#2

[eluser]Abu eldahab[/eluser]
any help ?
#3

[eluser]Abu eldahab[/eluser]
Hello,

i found the solution from here
http://www.askaboutphp.com/113/codeignit...harts.html

use it as library not as plugin as explained in Wiki

and now worked fine but when i'm using array with fixed values only

when i'm passing array result form the database it's work but the bars not displayed will

the blew picture when using fixed array values
http://www.ahmeddahab.com/sample1.jpg

but when i'm using array values from database query

it's giving this

http://www.ahmeddahab.com/sample2.jpg

i checked the return array from the database with print_r

and gave me
Code:
Array
(
    [0] => 316
    [1] => 50
    [2] => 39
    [3] => 713
    [4] => 357
    [5] => 1143
)


i don't know why this happening !!

any ideas ??
#4

[eluser]Abu eldahab[/eluser]
i found the problem

i had to use the function
Code:
intval()

before create the data array from the Databse

now every thing working fine




Theme © iAndrew 2016 - Forum software by © MyBB