Giter VIP home page Giter VIP logo

Comments (11)

kevteden avatar kevteden commented on August 16, 2024 3

I need help in php

from graph.

pm-cz avatar pm-cz commented on August 16, 2024 1

I have encountered the same problem (adding the graph to existing installation later) and the cause was that the graph table has not been created (i.e. query like CREATE TABLE graph(idint(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,useridint(11) DEFAULT NULL,data text ) was not executed).

After creating the table manually the problem ceased to exist.

So the URL to use will be http://yoursite/emoncms/admin/db

from graph.

JosefKrieglstein avatar JosefKrieglstein commented on August 16, 2024

Hi,

Same Fatal error, clean install from git, Debian.
Error is displayed instead of:

  1. Any Dashboard,
  2. Dashboard edit.

Cannot save graph - without error, without warning ... just nothing happend.

http://.../dashboard/edit?id=1
Fatal error: Call to a member function fetch_array() on boolean in /var/www/users/emoncms
/www/emoncms/Modules/graph/graph_model.php on line 91

http://.../dashboard/view&id=1
Fatal error: Call to a member function fetch_array() on boolean in /var/www/users/emoncms/www/emoncms/Modules/graph/graph_model.php on line 91

In Apache log file is same information, nothing more.

Josef Krieglstein

from graph.

glynhudson avatar glynhudson commented on August 16, 2024

Sorry to hear your having trouble.

What version PHP are you running?

Could you post your Emoncms Admin page?

Here is the mysql fetch_array function that's causing the error for you: http://php.net/manual/en/mysqli-result.fetch-array.php

from graph.

JosefKrieglstein avatar JosefKrieglstein commented on August 16, 2024

Hi,

admin page:
Emoncms Version 9.7.3 | 2016.09.28
Server OS Linux 3.2.0-4-amd64
Host apache1 (127.0.1.1)
Date 2016-11-03 20:38:38 CET
Uptime 20:38:38 up 249 days, 7:29, 0 users, load average: 0.00, 0.01, 0.05
HTTP Server Apache/2.4.10 (Debian) HTTP/1.1 CGI/1.1 80
Database Version MySQL 5.5.52-0+deb8u1
Host localhost (127.0.0.1)
Date 2016-11-03 20:38:38 (UTC 01:00‌​)
Stats Uptime: 994770 Threads: 1 Questions: 24899378 Slow queries: 0 Opens: 338 Flush tables: 1 Open tables: 186 Queries per second avg: 25.030
Memory RAM
Used 98.23%
Total: 495.52 MB Used: 486.77 MB Free: 8.75 MB
Disk Mount Stats
/
Used 7.35%
Total: 38.01 GB Used: 2.79 GB Free: 33.28 GB
PHP Version 5.6.26-0+deb8u1 (Zend Version 2.6.0)
Modules Core date ereg libxml openssl pcre zlib bcmath bz2 calendar ctype dba dom hash fileinfo filter ftp gettext SPL iconv mbstring session posix Reflection standard shmop SimpleXML soap sockets Phar exif sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter zip apache2handler PDO curl dio gd json mcrypt mysql mysqli pdo_mysql readline redis mhash Zend OPcache

from graph.

JosefKrieglstein avatar JosefKrieglstein commented on August 16, 2024

Hi,

I again go into admin page, update & check button found something with graph, by executing it, it is OK now.
I think, I was there before, because i found that solution for Version 7 in 2014, I have no idea, why I didn't see it on admin page some time ago. (emoncms/event_archived#26)

This issue is closed from my side.
Thanks a lot.

from graph.

Paul-Reed avatar Paul-Reed commented on August 16, 2024

@arthurlutz Have you any further information or update please.

Paul

from graph.

Paul-Reed avatar Paul-Reed commented on August 16, 2024

That URL will take you to the update database function, alternatively you can update via the menu;
Setup > Administration > Update Database
@arthurlutz did you update your database?

Paul

from graph.

arthurlutz avatar arthurlutz commented on August 16, 2024

I'm not having this bug anymore, I don't remember exactly how I fixed it though.

from graph.

pm-cz avatar pm-cz commented on August 16, 2024

Maybe it would be better to make it clear in README.md and instead of the text "Check database updates in Admin" add the information to not forget to visit

Setup > Administration > Update Database

and commit the changes. BTW it was not so straightforward, because I did not have this entry in menu and accessing the URL directly ended with page requesting reauthentication (I logged out/in under the same account and after that it worked).

from graph.

Paul-Reed avatar Paul-Reed commented on August 16, 2024

Yes, the page by design is only accessible on first login, therefore it's sometimes necessary to reauthenticate.
I'll have a look at the documentation later and see if I can make it clearer.

Thanks.

Paul

from graph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.