New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install 1.7.1 (hhvm, nginx), throws an exception #2085

Open
lhorace opened this Issue Apr 26, 2016 · 2 comments

Comments

Projects
None yet
4 participants
@lhorace

lhorace commented Apr 26, 2016

Technical details

  • YOURLS version: 1.7.1
  • PHP version: HHVM 3.12.1 (PHP 5.6.99-hhvm)
  • Any other useful information depending on context (server version, mysql version, browser version, OS version...)
    Nginx 1.6.3, MySQL 5.5.44-MariaDB

Reproducible Bug Summary

  1. Extract yourls 1.7.1 into the root of your webserver
  2. Create a user and a database
  3. Modify user/config.php
  4. Navigate to http://yoururl.com/admin

Expected Results:

Redirected to install.php

Actual Result:

Empty output

While digging into this issue, an uncaught expection is thrown, which makes it impossible to install the software.

`Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02] [1146] Table 'yourls_db.yourls_options' doesn't exist' in /var/www/vhosts/rd.lhprojects.net/htdocs/includes/ezSQL/ez_sql_pdo.php:249

Stack trace:
#0 /var/www/vhosts/rd.lhprojects.net/htdocs/includes/ezSQL/ez_sql_pdo.php(249): PDO->query()
#1 /var/www/vhosts/rd.lhprojects.net/htdocs/includes/ezSQL/ez_sql_pdo_yourls.php(54): ezSQL_pdo->query()
#2 /var/www/vhosts/rd.lhprojects.net/htdocs/includes/ezSQL/ez_sql_core.php(228): ezSQL_pdo_YOURLS->query()
#3 /var/www/vhosts/rd.lhprojects.net/htdocs/includes/functions.php(1018): ezSQLcore->get_results()
#4 /var/www/vhosts/rd.lhprojects.net/htdocs/includes/load-yourls.php(160): yourls_get_all_options()
#5 /var/www/vhosts/rd.lhprojects.net/htdocs/admin/install.php(4): include()
#6 {main}`

This bug must have been recently introduced because I've never came across this particular problem before.

A possible temporary workaround is problably to comment out #4 /var/www/vhosts/rd.lhprojects.net/htdocs/includes/load-yourls.php(160): yourls_get_all_options()

Regards,
Horace

@skinnrg

This comment has been minimized.

Show comment
Hide comment
@skinnrg

skinnrg May 10, 2016

I am having the exact same issue.

skinnrg commented May 10, 2016

I am having the exact same issue.

@emanb29

This comment has been minimized.

Show comment
Hide comment
@emanb29

emanb29 Aug 21, 2016

+1, same issue

emanb29 commented Aug 21, 2016

+1, same issue

@ozh ozh changed the title from Unable to install 1.7.1, throws an exception to Unable to install 1.7.1 (hhvm, nginx), throws an exception Apr 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment