Hi everyone! I am using Piwigo 2.6 and VideoJS 2.6a. Would it be possible for me to suppress warning messages? I get a couple of warning messages related to the VideoJS plugin. After some research I determined that the problem is this plugin is looking for ffmpeg and MediaInfo dependencies. Unfortunately, due to the limitations of the hosting account I have (inmotion hosting), I cannot install these programs. I have edited
/include/functions_html.inc.php
and changed error reporting to
error_reporting(E_ERROR | E_PARSE);
Unfortunately that did not have any effect. I love the way Pwigo is working for me, and other than the lack of thumbnails, VideoJS works nicely as well. If anyone could either tell me how to install ffmpeg and mediainfo dependencies without root access, or how to suppress the following warning messages, I would be very grateful. Thanks!
Warning: strpos() [function.strpos]: Offset not contained in string in /home/forwar19/public_html/browse/include/functions_url.inc.php on line 765
Warning: Cannot modify header information - headers already sent by (output started at /home/forwar19/public_html/browse/include/functions_url.inc.php:765) in /home/forwar19/public_html/browse/include/page_header.php on line 101
-Sathi
Hello
First, never ever modify core files
Secondly, why function_html file ? It's not the first file loaded
Use LocalFilesEditor plugin to edit the config param. I don't remember the name but you can search the keyword "error" in the file include/config_default.Inc.php (don't modify it !)
Offline
Thank you for taking the time to answer my question. I used LocalFilesEditor and made the following entry on the 'Local config' tab. Unfortunately I still see the error messages. Did I do something wrong? This is the entry I made:
<?php
/* The file does not exist until some information is entered
below. Once information is entered and saved, the file will be created. */
$conf['show_php_errors'] = '';
?>
And empty string is not a valid value...
http://www.php.net/manual/en/errorfunc. … -reporting
Offline
Sathi wrote:
Thank you for taking the time to answer my question. I used LocalFilesEditor and made the following entry on the 'Local config' tab. Unfortunately I still see the error messages. Did I do something wrong? This is the entry I made:
<?php
/* The file does not exist until some information is entered
below. Once information is entered and saved, the file will be created. */
$conf['show_php_errors'] = '';
?>
I have already given examples; search on the forum
Offline
This is working great for me now. Thanks guys.
btw: I edited the config the way I did because include/config_default.Inc.php instructed me to do it this way. Here is the code comment in it:
// this permit to show the php errors reporting (see INI 'error_reporting'
// for possible values)
// gives an empty value '' to deactivate
$conf['show_php_errors'] = E_ALL;
In case anyone else is reading this and it looking to do the same thing, I deactivated the warning messages with the following in the config file:
$conf['show_php_errors'] = E_ERROR;
Ok I undertsand
The empty value means it will not override the default php value
Offline