[Bug 2060848] [NEW] [SRU] minifycss fails to run

Launchpad Bug Tracker 2060848 at bugs.launchpad.net
Mon May 27 14:55:10 UTC 2024


You have been subscribed to a public bug by Sudip Mukherjee (sudipmuk):

[ Impact ]

minifycss and minifyjs is completely unusable and will fail immediately
on execution with the error:

$ minifycss
PHP Warning:  require_once(/usr/bin/../src/Minify.php): Failed to open stream: No such file or directory in /usr/bin/minifycss on line 10
PHP Fatal error:  Uncaught Error: Failed opening required '/usr/bin/../src/Minify.php' (include_path='.:/usr/share/php') in /usr/bin/minifycss:10
Stack trace:
#0 {main}
  thrown in /usr/bin/minifycss on line 10


$ minifyjs 
PHP Warning:  require_once(/usr/bin/../src/Minify.php): Failed to open stream: No such file or directory in /usr/bin/minifyjs on line 10
PHP Fatal error:  Uncaught Error: Failed opening required '/usr/bin/../src/Minify.php' (include_path='.:/usr/share/php') in /usr/bin/minifyjs:10
Stack trace:
#0 {main}
  thrown in /usr/bin/minifyjs on line 10


[ Test Plan ]

1. install php-matthiasmullie-minify
2. copy the sample test files from tests folder of the source

test minifycss:
minifycss  tests/css/sample/bom/bom.css

test minifyjs:
minifyjs  tests/js/sample/bugs/227/original.js

If the package is not fixed it will result in the above error.
With the fixed package it will display the minified versions.

[ Where problems could occur ]

The fix is including autoload.php which has been autogenerated as part
of the build and is adding all the required paths. It is not changing
any part of the code and there should not be any regression due to this
change.


[ Other Info ]

Oracular, Noble and Mantic were affected. Oracular now has synced and
the Debian fix is in it now.


[ Original Bug Description ]

minifycss fails to run with the error:

$ minifycss
PHP Warning:  require_once(/usr/bin/../src/Minify.php): Failed to open stream: No such file or directory in /usr/bin/minifycss on line 10
PHP Fatal error:  Uncaught Error: Failed opening required '/usr/bin/../src/Minify.php' (include_path='.:/usr/share/php') in /usr/bin/minifycss:10
Stack trace:
#0 {main}
  thrown in /usr/bin/minifycss on line 10

** Affects: matthiasmullie-minify (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: matthiasmullie-minify (Ubuntu Mantic)
     Importance: Undecided
         Status: Confirmed

** Affects: matthiasmullie-minify (Ubuntu Noble)
     Importance: Undecided
         Status: Confirmed

** Affects: matthiasmullie-minify (Debian)
     Importance: Unknown
         Status: Fix Released


** Tags: mantic noble
-- 
[SRU] minifycss fails to run
https://bugs.launchpad.net/bugs/2060848
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list