Menu

#4964 New version using older files

4.4.10
wont-fix
None
Normal
2015-07-03
2015-06-17
No

Clicking the "New" pseudo table entry in a database branch in the left-side tree view (calling tbl_create.php) returns a

Fatal error: Cannot redeclare class Application_Octetstream_Download in E:\Programme\xampp\phpmyadmin\libraries\plugins\transformations\Application_Octetstream_Download.class.php on line 42

as result in the right-side main frame just below the table headers.

Discussion

  • Isaac Bennetch

    Isaac Bennetch - 2015-06-17

    Hi Mario,

    Is this with version 4.4.10?

     
  • Mario Rohkrämer

    Yes, I just updated to 4.4.10 before testing. Running as service on Win7/64; but I guess it is just an issue of include(_once) / require(_once) orders.

     
  • Mario Rohkrämer

    That makes me wonder: If a file was just changed, it should have been overwritten; if a file is not in use anymore, it should not have been included in any place of the new PHP code. So how does an obsolete file get used and cause issues? Maybe because some code scans the directory for existing files matching a mask and imports what's available? Sounds like a security risk to me...

    I cleared the directory (except config.inc.php), unpacked the 4.4.10 archive again. Table creation dialog appears as expected.

     
  • Marc Delisle

    Marc Delisle - 2015-06-18

    Mario, good point.

     
  • Marc Delisle

    Marc Delisle - 2015-06-20
    • summary: Creating a new table from the tree branch fails --> New version using older files
     
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Madhura Jayaratne

    The plugin system of the phpMyAdmin work more or less similar to what you described, scanning the directory for existing files matching a mask and imports what's available. However, we have to allow for this to be able to use any 3rd party plugins.

    If I remember right, this particular plugin file was moved to a subfolder as part of refactoring, and when you upgrade on top of the old files you have the old version of the file in outer folder and the newer version in the sub folder.

     
  • Marc Delisle

    Marc Delisle - 2015-07-03
    • status: open --> wont-fix