Recent Topics

1 Dec 14, 2006 05:17    

Now that I've upgraded to 1.9.1, I get the following errors using the Sideblog plugin:

[Wed Dec 13 22:11:29 2006] [error] PHP Notice: Undefined variable: timestamp_max in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 136
[Wed Dec 13 22:11:29 2006] [error] PHP Notice: Undefined variable: timestamp_min in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 136
[Wed Dec 13 22:11:29 2006] [error] PHP Notice: Undefined variable: unit in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 136
[Wed Dec 13 22:11:29 2006] [error] PHP Notice: Undefined variable: orderby in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 136
[Wed Dec 13 22:11:29 2006] [error] PHP Notice: Undefined variable: author in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 136
[Wed Dec 13 22:11:29 2006] [error] PHP Notice: Undefined variable: w in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 136
[Wed Dec 13 22:11:29 2006] [error] PHP Notice: Undefined variable: m in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 136
[Wed Dec 13 22:11:29 2006] [error] PHP Notice: Undefined variable: show_statuses in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 136
[Wed Dec 13 22:11:29 2006] [error] PHP Notice: Undefined variable: blog in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 114

2 Dec 16, 2006 00:37

I thought I'd test this out and see if I could duplicate your problem, but I can't find a "sideblog" plugin anywhere. Where did you find it? The only thing even close to that name is the sidebar plugin that ships with 1.9.1, but that's not what your error text is talking about.

4 Dec 16, 2006 00:58

Thanks. Did the latest version by dan over there take care of your problem?

5 Dec 16, 2006 01:52

I just saw it, and according to my error log:

[Fri Dec 15 18:52:19 2006] [error] PHP Notice: Undefined variable: blog in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 114
[Fri Dec 15 18:52:19 2006] [error] PHP Notice: Undefined variable: blog in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 114
[Fri Dec 15 18:52:18 2006] [error] PHP Notice: Undefined variable: blog in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 114

No.

6 Dec 16, 2006 17:14

Ok, try it now. Somehow 1.9.1 seems to have turned on php notices, which I think is a bad idea for production sites. Granted, this wouldn't be a problem if I hadn't made such sloppy code and Daniel did tell me month ago to show all errors when I'm developing and I didn't do it. I'm working on correcting these plugins, but it takes time.

7 Dec 16, 2006 20:14

Now I get this:

[Sat Dec 16 13:12:58 2006] [error] PHP Notice: Undefined variable: timestamp_min in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 137
[Sat Dec 16 13:12:58 2006] [error] PHP Notice: Undefined variable: unit in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 137
[Sat Dec 16 13:12:58 2006] [error] PHP Notice: Undefined variable: orderby in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 137
[Sat Dec 16 13:12:58 2006] [error] PHP Notice: Undefined variable: author in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 137
[Sat Dec 16 13:12:58 2006] [error] PHP Notice: Undefined variable: w in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 137
[Sat Dec 16 13:12:58 2006] [error] PHP Notice: Undefined variable: m in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 137
[Sat Dec 16 13:12:58 2006] [error] PHP Notice: Undefined variable: show_statuses in /home/comlist/public_html/plugins/_sideblog.plugin.php on line 137

Is there a way to turn off the php notices?

8 Dec 16, 2006 21:23

Yes,

error_reporting(1);

put that at the top of the plugin or in /conf/_basic_config.php to get the whole app.

9 Dec 16, 2006 21:41

If I put the error reporting line in either file, I still get the error messages in my error log.

10 Dec 16, 2006 23:32

Ah, I just reread your earlier post. I thought you were talking about these notices showing up on your actual blog page. I'll try to get these notices fixed for real soon. You're going to have to live with the extra items in your log until then, unless you want to pitch in and fix my sloppy code. ;)


Form is loading...