Login screen shows no images, main page is empty!
Please I need urgent help.
The Login Page has no graphics. Neither my logo.
I am able to enter user and password, and the mainmenu is also empty!
This is what the Element Inspector shows in Firefox:
Output of index.php?mainmenu=home:
POST http://localhost/dolibarr/index.php[HTTP/1.0 500 Internal Server Error 30ms]
reflow: 0.13ms
reflow: 0.43ms
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. index.php Use of getPreventDefault() is deprecated. Use defaultPrevented instead. index.php
And this is the output of the login page:
/loalhost/dolibarr/:
Ok, forgot to look at the Apache error file.
Here’s the output of the first 2 minutes:
[Mon May 05 09:44:12 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.11 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/1.0.1 configured -- resuming normal operations
[Mon May 05 10:36:29 2014] [error] [client 127.0.0.1] PHP Warning: include_once(/usr/share/php/adodb/adodb-time.inc.php): failed to open stream: No such file or directory in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215
[Mon May 05 10:36:29 2014] [error] [client 127.0.0.1] PHP Warning: include_once(): Failed opening ‘/usr/share/php/adodb/adodb-time.inc.php’ for inclusion (include_path=’/var/www/htdocs’) in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215
[Mon May 05 10:36:29 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892
[Mon May 05 10:36:29 2014] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/jquery-ui, referer: http://localhost/dolibarr/
[Mon May 05 10:36:29 2014] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/jquery-ui, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(/usr/share/php/adodb/adodb-time.inc.php): failed to open stream: No such file or directory in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(): Failed opening ‘/usr/share/php/adodb/adodb-time.inc.php’ for inclusion (include_path=’/var/www/htdocs’) in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/ckeditor, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(/usr/share/php/adodb/adodb-time.inc.php): failed to open stream: No such file or directory in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(): Failed opening ‘/usr/share/php/adodb/adodb-time.inc.php’ for inclusion (include_path=’/var/www/htdocs’) in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(/usr/share/php/adodb/adodb-time.inc.php): failed to open stream: No such file or directory in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(): Failed opening ‘/usr/share/php/adodb/adodb-time.inc.php’ for inclusion (include_path=’/var/www/htdocs’) in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/jquery-ui, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/ckeditor, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(/usr/share/php/adodb/adodb-time.inc.php): failed to open stream: No such file or directory in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(): Failed opening ‘/usr/share/php/adodb/adodb-time.inc.php’ for inclusion (include_path=’/var/www/htdocs’) in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(/usr/share/php/adodb/adodb-time.inc.php): failed to open stream: No such file or directory in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Warning: include_once(): Failed opening ‘/usr/share/php/adodb/adodb-time.inc.php’ for inclusion (include_path=’/var/www/htdocs’) in /usr/share/dolibarr/htdocs/filefunc.inc.php on line 215, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
[Mon May 05 10:36:30 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function adodb_strftime() in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 892, referer: http://localhost/dolibarr/
SOLVED!
Man, I spent almost 12hours in front of the bl***y computer!
To make it VERY short:
I had to edit /etc/dolibarr/conf.php
(first, opening a terminal and typing “gksu nautilus” to get rights)
open conf.php with gedit, and editing the path to ADODB.
It stated:
$dolibarr_lib_ADODB_PATH=’/usr/share/php/adodb’;
a search with Nautilus did not show up any php/adodb directories.
So I changed it to what is actually there, in /includes:
$dolibarr_lib_ADODB_PATH=’/usr/share/dolibarr/htdocs/includes/adodbtime’;
which is quite different actually.
What bugs me is, what happened? What was the cause for that?
Anyway, I’m so happy to see my customers, bills and products again!
NOT SOLVED
I did nothing, it was working fine.
Could a Ubuntu update have caused this?
Or some hacker targeted me? It it weird, because the Handbase database that I use on my Android phone also went corrupt. The file is there, but the program does not open it! I use it to keep track of customers, hours, materials, etc.
Anyway, I can log in and work in Dolibarr again, but when I validate a draft, no invoice number is generated.
It is similar to the proforma problem, where only part of the fields appear.
I tried reinstalling from .deb, but it is not working.
I’ll try to save the database and reinstall from scratch.
Conf.php is still pointing to wrong file locations.
Only the javascript section is left. The rest works again.
Here’s the error log on login page:
File does not exist: /var/www/usr, referer: http://localhost/dolibarr/
File does not exist: /usr/share/javascript/jquery-ui, referer: http://localhost/dolibarr/
File does not exist: /usr/share/javascript/jquery-ui, referer: http://localhost/dolibarr/
File does not exist: /var/www/usr, referer: http://localhost/dolibarr/
File does not exist: /usr/share/javascript/jquery-ui, referer: http://localhost/dolibarr/
File does not exist: /var/www/usr, referer: http://localhost/dolibarr/
I can’t find a line pointing to this /var/www/usr in the config.php file.
There is also no jquery-ui file or folder in Dolibarr.
WORKING AGAIN.
I finally bit the bullet and reinstalled Dolibarr.
It scared me, although I have several database backups.
First removed it with Software Manager.
Then used Synaptic to completely remove it, including configuration files.
Luckily it lets you choose if the database should be removed, to which I said no.
Reinstalled the .deb file, unticked create database and user, entered the database password, and voilà.
It is working again.