Opened 3 years ago

Closed 3 years ago

#12835 closed Bug Report - General (Invalid)

Webpage error after 16.04 /.28 upgrade

Reported by: dm@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.28.0
Severity: medium Keywords:
Cc: Ticket locked: no

Description

datetime: 2016-07-28 20:45:32 (CDT)

errornum: 256

error type: User Error

error string: !NoTrans: You are missing a php extension for mysql interaction. Please install php-mysqli or similar!!

filename: /usr/share/mythtv/mythweb/includes/php_version_check.php

error line: 20

==========================================================================

Backtrace:

file: /usr/share/mythtv/mythweb/includes/php_version_check.php line: 20

class:

function: trigger_error

type: args: Array

(

[0] => You are missing a php extension for mysql interaction. Please install php-mysqli or similar [1] => 256

)

file: /usr/share/mythtv/mythweb/includes/init.php line: 33

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/includes/php_version_check.php

)

file: /usr/share/mythtv/mythweb/mythweb.php line: 20

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/includes/init.php

)

==========================================================================

$_SESSION: Array (

[language] => English

)

==========================================================================

$_SERVER: Array (

[db_server] => localhost [db_name] => mythconverg [db_login] => mythtv [db_password] => 33HpQO0s [HTTP_HOST] => 192.168.199.114 [HTTP_CONNECTION] => keep-alive [HTTP_UPGRADE_INSECURE_REQUESTS] => 1 [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit?/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 [HTTP_ACCEPT_ENCODING] => gzip, deflate, sdch [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8 [HTTP_COOKIE] => mythweb_id=6bto2baqvv48q1ltpj5svb1040 [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [SERVER_SIGNATURE] => <address>Apache/2.4.18 (Ubuntu) Server at 192.168.199.114 Port 80</address>

[SERVER_SOFTWARE] => Apache/2.4.18 (Ubuntu) [SERVER_NAME] => 192.168.199.114 [SERVER_ADDR] => 192.168.199.114 [SERVER_PORT] => 80 [REMOTE_ADDR] => 192.168.199.153 [DOCUMENT_ROOT] => /var/www/html [REQUEST_SCHEME] => http [CONTEXT_PREFIX] => [CONTEXT_DOCUMENT_ROOT] => /var/www/html [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/html/mythweb/mythweb.php [REMOTE_PORT] => 64107 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => /mythweb/mythweb.php [SCRIPT_NAME] => /mythweb/mythweb.php [PHP_SELF] => /mythweb/mythweb.php [REQUEST_TIME_FLOAT] => 1469756732.093 [REQUEST_TIME] => 1469756732

)

==========================================================================

$constant_listuser?: Array (

[ERROR] => 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024

)

Change History (6)

comment:1 Changed 3 years ago by Stuart Auchterlonie

Status: newinfoneeded_new

Hi,

Have you installed php-mysqli as the error message suggests?

Regards Stuart

comment:2 Changed 3 years ago by dm@…

No I haven't performed the php-mysqli install. Wanted to report the bug to see if there was any previously known fix process prior to making any changes.

Regards Jon

comment:3 Changed 3 years ago by Stuart Auchterlonie

Resolution: Invalid
Status: infoneeded_newclosed

TBH there isn't anything we can do about it. If you are using packages it's up to packagers to specify the required deps, if you are using source install, it's up to you to install the required deps.

I'll close this now, if you still have issues after installing the relevant deps, feel free to reopen

Regards Stuart

comment:4 Changed 3 years ago by dm@…

Resolution: Invalid
Status: closednew

Not sure I understand the installing of dependancies as this is Mythbuntu.

Installed php-mysqli: sudo apt-get install php-mysqli
user@Mythbuntu-PVR:~$ sudo apt-get install php-mysqli
Reading package lists... Done
Building dependency tree
Reading state information... Done

Note, selecting 'php7.0-mysql' instead of 'php-mysqli'
The following NEW packages will be installed:

php7.0-mysql

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 123 kB of archives.
After this operation, 473 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-mysql amd64 7.0.8-0ubuntu0.16.04.1 [123 kB]
Fetched 123 kB in 0s (364 kB/s)
Selecting previously unselected package php7.0-mysql.
(Reading database ... 152393 files and directories currently installed.)
Preparing to unpack .../php7.0-mysql_7.0.8-0ubuntu0.16.04.1_amd64.deb ...
Unpacking php7.0-mysql (7.0.8-0ubuntu0.16.04.1) ...
Processing triggers for libapache2-mod-php7.0 (7.0.8-0ubuntu0.16.04.1) ...
Setting up php7.0-mysql (7.0.8-0ubuntu0.16.04.1) ...

Creating config file /etc/php/7.0/mods-available/mysqlnd.ini with new version

Creating config file /etc/php/7.0/mods-available/mysqli.ini with new version

Creating config file /etc/php/7.0/mods-available/pdo_mysql.ini with new version Processing triggers for libapache2-mod-php7.0 (7.0.8-0ubuntu0.16.04.1) ...

The result after is the same originating error. Accessing http://host/mythweb results in the error to install php-mysqli

comment:5 Changed 3 years ago by dm@…

Using Mythbuntu Control Centre updated the repositories selection to from .27 to .28. Searched for new updates. Didn't locate any. Rebooted host. Now functionality is restored. Didn't see any changes made. Chalk this up to FM. Or running the php-mysqli install, and now rebooting might have been the fix, but unconfirmed.

Please close case.

comment:6 Changed 3 years ago by stuartm

Resolution: Invalid
Status: newclosed
Note: See TracTickets for help on using tickets.