Dolibarr: 3.9.0-beta Printing error

This page lists printing jobs found for available printers.

Dolibarr heeft een technische fout gedetecteerd.
Dit is informatie die kan helpen bij het diagnostiseren:
Datum: 20151124201057
Dolibarr: 3.9.0-beta
Niveau van de functionaliteiten: 0
PHP: 5.3.0
Server: Apache/2.2.11 (Win32) PHP/5.3.0
OS: Windows NT LUW4U 6.2 build 9200 ((null)) i586
UserAgent: Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

Gezochte Url: /dolibarr/printing/index.php
Referer: http://localhost/dolibarr/printing/index.php
Standaard menuverwerker: eldy_menu.php

Database Type Manager: mysqli
Query laatste foute toegang tot database: SELECT token FROM llx_oauth_token WHERE service=‘Google’
Verkregen laatste toegangscode met fundamenteel fout: DB_ERROR_NOSUCHTABLE
Informatie over de laatste fundamentele toegang fout: Table ‘dolibarr.llx_oauth_token’ doesn’t exist

Fatal error: Call to a member function fetch_array() on a non-object in H:\dolibarr\www\dolibarr\htdocs\core\db\mysqli.class.php on line 307

Help?

Solved some things true update-files but now a message shows up:

- No active module to print document

and

- Token not found in db, are you sure you stored it?
No default printer defined

Modules active:
- Oauth
- Direct Printing
- ZenFusion OAuth

Hello


For Google Cloud Print in 3.9 you need
- Oauth
- Direct Printing

Fred

Please see my previous post:

Modules active:
- Oauth
- Direct Printing
- ZenFusion OAuth

It’s not working somehow… still recieve the message:
- No active module to print document

Hello
Did you configure oauth (ZenFusion OAuth is not needed)
take a look in the french forum, I explain how to configure oauth with google.
Did you configure printers with google cloud print? https://www.google.com/cloudprint/#printers

Fred

Hello
Example of oauth config:

Fred

Fred

Printer List:

Fred

Big brother is watching me:

Fred

I don’t know exactly what i’m doing wrong…
I’ve followed the stepts exactly in your posts.

This is the message for now: (Sorry most written in Dutch)

Installed:
- Dolibarr 3.9rc
- Oauth
- Directprinting

Printer shows up at Google Cloudprinting and is already configured.
Brother printer supports Cloudprinting.

Hello
Seem missing table:

CREATE TABLE IF NOT EXISTS llx_oauth_state (rowid int(11) NOT NULL AUTO_INCREMENT, service varchar(36), state varchar(128), fk_user int(11), fk_adherent int(11), entity int(11), PRIMARY KEY (rowid)) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS llx_oauth_token (rowid int(11) NOT NULL AUTO_INCREMENT, service varchar(36), token text, fk_user int(11), fk_adherent int(11), entity int(11), PRIMARY KEY (rowid)) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

Fred

Still the message:

Hello
Try to create doli_auth_token table in place of llx_oauth_token

Fred

Changed the last code… no error for now.
But the next setting don’t work…

1.png

To request en new token, the link ends at my own (error 404)webpage outside Dolibarr. So no token to request.
Click here to request/renew access and receive a new token to save

From GitHub the file getgoogleoauthcallback.php uploaded, the link works…

And again:

Hello
Can you create the table doli_oauth_state:
CREATE TABLE IF NOT EXISTS doli_oauth_state (rowid int(11) NOT NULL AUTO_INCREMENT, service varchar(36), state varchar(128), fk_user int(11), fk_adherent int(11), entity int(11), PRIMARY KEY (rowid)) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

Fred

Hello
The file getgoogleoauthcallback.php has been renamed in google_oauthcallback.php and it is why it’s no longer working
you can use getgoogleoauthcallback.php and set this address in google api

Fred

1 Like

I looked at the code:

~\core\modules\oauth\google_oauthcallback.php (48): $currentUri = $uriFactory->createFromAbsolute($urlwithroot.'/core/modules/oauth/getgoogleoauthcallback.php');

and changed getgoogleoauthcallback.php to google_oauthcallback.php

Finaly it works :happy: Thanks for your patience, help and time !!

Salut Fred,

Je suis coincé avec le probleme d’autorisé le token pour aficher les imprimantes. J’ai deja lu un thread ou tu as donner la solution mais je nai pas bien compris stp je voulais demander si tu peut expliquer d’avantage. Je suis anglophone mon francais n’est pas tres bon.

Hello
Your server is linux or win?
Some people have problems with curl and windows because ssl certificates are not up to date.
Fred