Announcement

#1 2014-01-28 01:37:10

Sathi
Guest

How can I disable warning messages?

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

 

#2 2014-01-28 08:05:52

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: How can I disable warning messages?

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

 

#3 2014-01-30 02:19:46

Sathi
Guest

Re: How can I disable warning messages?

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'] = '';


?>

 

#4 2014-01-30 10:08:18

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: How can I disable warning messages?

And empty string is not a valid value...
http://www.php.net/manual/en/errorfunc. … -reporting

Offline

 

#5 2014-01-30 21:13:23

flop25
Piwigo Team
2006-07-06
7037

Re: How can I disable warning messages?

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2014-02-02 20:53:15

Sathi
Guest

Re: How can I disable warning messages?

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;

 

#7 2014-02-02 21:35:29

flop25
Piwigo Team
2006-07-06
7037

Re: How can I disable warning messages?

Ok I undertsand
The empty value means it will not override the default php value


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact