Advertisement:

Author Topic: After Update All Problems!!!  (Read 2181 times)

ojaiclassifieds

  • Newbie
  • *
  • Posts: 6
After Update All Problems!!!
« on: December 11, 2011, 08:36:44 pm »
After previous update, I haven't been able to update and most plugins will can not be installed. I get errors for everything about the plugins. I have tried to install the shop plugin I get errors and many others. What is the deal?

There was a fatal error and the plugin was not installed.
Error: "PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so' - libswscale.so.0: cannot open shared object file: No such file or directory" Line: 0
File: Unknown

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: After Update All Problems!!!
« Reply #1 on: December 12, 2011, 02:21:34 am »
this problem is because we catch all the PHP errors when a plugin is installed. You have a problem in your apache server... You have two options:
    1) Solve the problem
    2) Comment the lines that catch the errors... You must find the lines where is used this function: register_shutdown_function

ojaiclassifieds

  • Newbie
  • *
  • Posts: 6
Re: After Update All Problems!!!
« Reply #2 on: December 13, 2011, 02:53:18 am »
I am lost? What do you mean? I just did a fresh install on a practice page and the same error without any plugins.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: After Update All Problems!!!
« Reply #3 on: December 13, 2011, 11:50:44 am »
That's a startup error, it has nothign to be with OSClass but with your PHP installation/configuration.

The php.ini file is trying to load a library (ffmpeg.so) which does not exists (or is not readable).
You could fix it in the following ways :
A.- Modify php.ini to not include that library (if you don't want to/ need it anymore)
or
B.- Make readable/available that library (if you want to have it)
or
C.- modify oc-admin/plugins.php, comment lines 81 and 109, from (line 81)

                    register_shutdown_function
(array($this'errorHandler'), $pn'install');

to
                    //register_shutdown_function(array($this, 'errorHandler'), $pn, 'install');


and

from (line 109)

                    register_shutdown_function
(array($this'errorHandler'), $pn'enable');

to
                    //register_shutdown_function(array($this, 'errorHandler'), $pn, 'enable');


In tha last case (C), the error will be still there, but you will not see it, so we recommend you to proceed with A or B options, also in C, in the next update of OSClass, you will have to modify again that file (plugins.php)