jorgebooks / measureit

Automatically exported from code.google.com/p/measureit
0 stars 0 forks source link

measureit 112...I can't see the home page correctly #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install measureit 112 on linux
2.Start the grabber script
3.Open the web browser and I can see only the "Home" button in page

What is the expected output? What do you see instead?
When I open web browser to the measureit home page I can see only the "Home" 
button on top right. Nothing else appear, and when I clik on "Home" nothing 
happened.

What version of the product are you using? On what operating system?
Install measureit 112 on Elastix 2.3.0 (CentOS Linux 5.7)

Please provide any additional information below.
The grabber works fine because the data are present in the database correctly.
In Chrome the "Console Java Script" report the following issue:
"Uncaught TypeError: Cannot read property 'length' of null 
jquery-1.7.1.min.js:2"
I attached the print screen.

Thanks a lot for your support.

Original issue reported on code.google.com by paolo.pi...@gmail.com on 10 Nov 2012 at 1:06

Attachments:

GoogleCodeExporter commented 9 years ago
Please try to call the functions from the start page directly and see if there 
is any error:

http://192.168.1.6/php/measureit_functions.php?do=navigation_main
http://192.168.1.6/php/measureit_functions.php?do=lng_get
http://192.168.1.6/php/measureit_functions.php?do=summary_start

Original comment by lalelu...@gmail.com on 12 Nov 2012 at 5:52

GoogleCodeExporter commented 9 years ago
Hi, I tried to call the 3 functions but in all cases nothing appears in web 
browser.
I can see blank page only...

Original comment by paolo.pi...@gmail.com on 12 Nov 2012 at 9:10

GoogleCodeExporter commented 9 years ago
The error reporting can be off in your php.ini. There must be a error or you 
should see data :)

Please try it again with this line in the beginning ( inside the php tags ) of 
the measureit_functions.php

error_reporting( E_ALL );

If this not help you had to search for the error reporting settings in your php 
config

Original comment by lalelu...@gmail.com on 13 Nov 2012 at 6:55

GoogleCodeExporter commented 9 years ago
Hi, thanks a lot for your support...
I inserted the following line in measureit_functions.php to enable error 
reporting on your script:

ini_set('display_errors',1);
error_reporting( E_ALL );

And then I try to call the 3 functions with the following results:

- https://192.168.1.6/measureit/php/measureit_functions.php?do=navigation_main
Fatal error: Call to undefined function json_encode() in      
/var/www/html/measureit/php/measureit_functions.php on line 126

- https://192.168.1.6/measureit/php/measureit_functions.php?do=lng_get
Notice: Undefined offset: 1 in 
/var/www/html/measureit/php/measureit_functions.php on line 426
Fatal error: Call to undefined function json_encode() in 
/var/www/html/measureit/php/measureit_functions.php on line 416

- https://192.168.1.6/measureit/php/measureit_functions.php?do=summary_start
Notice: Undefined index: 20 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined index: 11 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined index: 12 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined index: 13 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined index: 20 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined index: 20 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined index: 11 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined index: 12 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined index: 13 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined index: 20 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined index: 11 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined index: 12 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined index: 13 in 
/var/www/html/measureit/php/measureit_functions.php on line 365
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Notice: Undefined variable: prices in 
/var/www/html/measureit/php/measureit_functions.php on line 497
Fatal error: Call to undefined function json_encode() in 
/var/www/html/measureit/php/measureit_functions.php on line 200

I hope this is helpful...

Original comment by paolo.pi...@gmail.com on 13 Nov 2012 at 8:20

GoogleCodeExporter commented 9 years ago
Your php version is the problem.

Fatal error: Call to undefined function json_encode(). 

json_encode is per default in php since version 5.2.0.

A search will find out that you are not alone with this problem. I am shure you 
will found a solution here  :)
https://www.google.de/#hl=en&output=search&q=undefined+function+json_encode()+ce
ntos

Original comment by lalelu...@gmail.com on 14 Nov 2012 at 6:55

GoogleCodeExporter commented 9 years ago
Hi, I install json and now it's working fine.
Thanks a lot for your support!!! :)))

Original comment by paolo.pi...@gmail.com on 15 Nov 2012 at 9:51

GoogleCodeExporter commented 9 years ago

Original comment by lalelu...@gmail.com on 16 Nov 2012 at 7:36