formtools / module-data_visualization

The Data Visualization module.
https://docs.formtools.org/modules/data_visualization/
7 stars 9 forks source link

Problem with "USE IN YOUR PAGE" #13

Closed thebitdoctor closed 6 years ago

thebitdoctor commented 6 years ago

Hello everyone! I've a problem whit the module I copied the php code (from "use in your page" section) and pasted on html page on my website, but nothing happen.

I'm using php 7 (the website and formtools are in the same server)

Thanks

benkeen commented 6 years ago

Rats! You're right... let me look this over. It looks like some sort of path issue. Keep you posted.

benkeen commented 6 years ago

I'll release a new version containing a patch for this tonight. Thanks for reporting it, @thebitdoctor!

thebitdoctor commented 6 years ago

Thanks for your work!

thebitdoctor commented 6 years ago

sorry... I still have the same problem... This time I'm going to upload pic! 1 2

Am I wrong In something? Sorry for disturb . TB

benkeen commented 6 years ago

No worries! Hmm... did you copy the entire block including the opening <?php tag? Since the PHP is just being output to the page it means it's not being interpreted. That either means the PHP wasn't quite right, or the page isn't a PHP page. Possibly the latter?

The code should be good now though - I confirmed it was all working locally.

thebitdoctor commented 6 years ago

🤔 I copied all the code, and Pasted it in one embed widget. It doesn’t work. So I tried ti include directly in the HTML code but same result

Do you thing could be some setting like mysql, compatibility...?

benkeen commented 6 years ago

Sounds like maybe it's not a PHP page?

Try copying & pasting the following block into your page. It should output "Hello world!" and no other chars. Mind trying it?

<?php echo "Hello world!"; ?>
thebitdoctor commented 6 years ago

ok, problem solved!

I copied in a new .php page the php code and redirected the widget code to that page.

Finally it work!!

Thanks for you precious help @benkeen !!!

benkeen commented 6 years ago

No problem! Glad it got solved. 😄