Menu

#4627 (ok 4.3.1) [4.3.0deb0.3] "file_get_contents(examples/create_tables.sql): failed to open stream" after update

4.3.0
fixed
1
2015-02-07
2014-12-08
Alan Parker
No

Using the following repo
~~~~~~deb http://ppa.launchpad.net/tuxpoldo/phpmyadmin/ubuntu utopic main~~~~~~
I apt-get updated-ed and got 4.3.0deb0.3, but I also got an error that appears every time I switch databases.

Warning in ./libraries/relation.lib.php#1815
 file_get_contents(examples/create_tables.sql): failed to open stream: No such file or directory

Backtrace

./libraries/relation.lib.php#1815: file_get_contents(string 'examples/create_tables.sql')
./libraries/core.lib.php#999: PMA_getDefaultPMATableNames()
./libraries/common.inc.php#1153: PMA_checkAndFixPMATablesInCurrentDb()
./db_structure.php#12: require_once(./libraries/common.inc.php)

I found /usr/share/doc/phpmyadmin/examples/create_tables.sql.gz and gunzipped it, and basically splattered it into what looked like the right directories across all of the multiple places phpmyadmin likes to hide out in Ubuntu. It still complained.

EDIT: Apologies - despite pasting from the examples, markdown formatting doesn't seem to be working for me.

So I then imported create_tables.sql manually and although it looks like it created all the tables in that sql file, it STILL complains.

Discussion

  • Alan Parker

    Alan Parker - 2014-12-08

    Sorry, I'm clearly not "getting" the version markdown used here - the line with the repo has completely vanished upon posting, when all I did was indent by 4 spaces as normal. So, it's the tuxpoldo utopic repo.

     

    Last edit: Alan Parker 2014-12-08
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
    • Group: 4.2.13 --> 4.3.0
     
  • Madhura Jayaratne

    • summary: [4.3.0deb0.3] "file_get_contents(examples/create_tables.sql): failed to open stream" after update --> (ok 4.3.1) [4.3.0deb0.3] "file_get_contents(examples/create_tables.sql): failed to open stream" after update
    • status: open --> resolved
    • Priority: 3 --> 1
     
  • Alan Parker

    Alan Parker - 2014-12-08

    Thanks for acting so quickly, however I'm still not able to get rid of that error after applying patch files.

    It still complains it can't find the file, although I have unzipped it to the following locations:

    /usr/share/doc/phpmyadmin/examples/create_tables.sql
    /usr/share/phpmyadmin/create_tables.sql
    /usr/share/phpmyadmin/libraries/create_tables.sql
    /usr/share/phpmyadmin/libraries/examples/create_tables.sql

    IS there any way to hide the error permanently until the new version hits the repo?

    I've ticked the box saying "automatically report", but then it tells me it's automatically reporting it, which still blocks workflow. :(

     
  • Marc Delisle

    Marc Delisle - 2014-12-08
    • Status: resolved --> fixed
     
  • Agustin

    Agustin - 2014-12-12

    Hi, I had the same problem and I changed the libraries/vendor_config.php and libraries/relation.lib.php. Then I restart the apache2 service, but now when I try to open the phpmyadmin, the web browser show me nothing. I cant see the login. The web is in blank.
    May be I have to do something else.

     
    • Isaac Bennetch

      Isaac Bennetch - 2014-12-12

      Check your webserver error log for hints about the blank page.

       
      • Agustin

        Agustin - 2014-12-13

        I solved the problem when I installed the phpmyadmin v4.3.2.

        Thanks a lot.

         
MongoDB Logo MongoDB