craigrodway / printmaster

Web-based printer and consumable management for IT departments
http://webman.me.uk/projects/printmaster/
GNU General Public License v3.0
24 stars 13 forks source link

Hope This Project still A LIVE :)) #10

Open syahj0-pjbac opened 4 years ago

syahj0-pjbac commented 4 years ago

Hello, Pardon me for asking.

After deploy on my shared server i got Error 404 read and follow all manual setup ..inc/config/config.php

perhaps any clue will help.

Thanks

craigrodway commented 4 years ago

Hi! Can you try setting $config->debug = TRUE; in the config.php file and try again, to see if it gives you any more descriptive errors? You can also try uncommenting lines 69-70 in inc/core.php which will log errors to the files specified.

Hope that helps!

syahj0-pjbac commented 4 years ago

Done that, but no luck using php 7.1 and try downgrade to 5.1 . Maybe shared hosting problem, but other web apps just works fine. Just finished deploy on localhost, its works. using php 5.1

syahj0-pjbac commented 4 years ago

Get this error, after uploaded from working localhost to shared hosting. all credential normal.

$_SERVER: Array ( [PATH] => /usr/local/bin:/bin:/usr/bin [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_ACCEPT_LANGUAGE] => en-GB,en;q=0.5 [HTTP_CONNECTION] => keep-alive [HTTP_COOKIE] => _ga=GA1.2.316325889.1537671719; __atuvc=0%7C16%2C0%7C17%2C0%7C18%2C0%7C19%2C3%7C20; language=en-gb; currency=IDR; PHPSESSID=bcf6dd0b420a0d35c14af2a0deb0cfee [HTTP_HOST] => mydomain.com [HTTP_REFERER] => http://mydomain.com/print/ [HTTP_USER_AGENT] => Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0 [HTTP_DNT] => 1 [HTTP_UPGRADE_INSECURE_REQUESTS] => 1 [DOCUMENT_ROOT] => /home/u5723/public_html [REMOTE_ADDR] => 15.1.18.2 [REMOTE_PORT] => 46340 [SERVER_ADDR] => 13.9.10.19 [SERVER_NAME] => mydomain.com [SERVER_ADMIN] => webmaster@mydomain.com [SERVER_PORT] => 80 [REQUEST_URI] => /print/index.php [TZ] => Asia/Jakarta [SCRIPT_FILENAME] => /home/u5726133/public_html/print/index.php [QUERY_STRING] => {empty_string} [SCRIPT_URI] => http://berkahabadi.com/print/index.php [SCRIPT_URL] => /print/index.php [SCRIPT_NAME] => /print/index.php [SERVER_PROTOCOL] => HTTP/1.1 [SERVER_SOFTWARE] => LiteSpeed [REQUEST_METHOD] => GET [X-LSCACHE] => on [PHP_SELF] => /print/index.php [REQUEST_TIME_FLOAT] => 1581420281.7645 [REQUEST_TIME] => 1581420281 )

$_POST: Array ( )

$_GET: Array ( )

$_FILES: Array ( )

$_SESSION: Array ( [fSession::type] => normal [fSession::expires] => 1581423881 [fCRUD::/print/models.php::previous_sort_column] => models.name [fCRUD::/print/models.php::previous_sort_direction] => asc )

$_COOKIE: Array ( [_ga] => GA1.2.316325889.1537671719 [__atuvc] => 0|16,0|17,0|18,0|19,3|20 [language] => en-gb [currency] => IDR [PHPSESSID] => bcf6dd0b420a0d35c14af2a0deb0cfee )Uncaught fAuthorizationException

{doc_root}/print/index.php(49): fDatabase->query('SELECT\n\t\tconsum...') {doc_root}/print/inc/flourish/fDatabase.php(2930): fDatabase->preprocess('SELECT\n\t\tconsum...', Array, false) {doc_root}/print/inc/flourish/fDatabase.php(2776): fDatabase->connect() {doc_root}/print/inc/flourish/fDatabase.php(797): fDatabase->handleConnectionErrors(Array) {doc_root}/print/inc/flourish/fDatabase.php(2044) Unable to connect to database - login credentials refused

On Tue, 11 Feb 2020 at 3:26 pm, Craig A Rodwaynotifications@github.com wrote:
Hi! Can you try setting $config->debug = TRUE; in the config.php file and try again, to see if it gives you any more descriptive errors? You can also try uncommenting lines 69-70 in inc/core.php which will log errors to the files specified.

Hope that helps!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

craigrodway commented 4 years ago

As it says "login credentials refused" there must be something with the DB class or config that is the problem.

The collection of classes that the project uses, Flourish, isn't active any more - https://github.com/flourishlib/flourish-classes/issues/227 - so the only recommendation left is to try replacing the files in your inc/flourish folder with files from either a) the fork (https://github.com/imarc/flourish-classes) or b) the fixes (https://github.com/flourishlib/flourish-classes/tree/php7-compat-plus-misc-fixes).

syahj0-pjbac commented 4 years ago

Still have same error. After using option A n B Have test using mysql DB using mydbtest.php is work normal.

Will explorer later.

Still working fine on localhost ( XAMPP 1.7.3! [PHP: 5.3.1] )