Recent Topics

1 Jun 06, 2016 00:11    

I did a manual upgrade today from version 6.6.7 to 6.7.3. Now when I try to create and Save a new post, I get this error message:

An unexpected error has occurred!

If this error persists, please report it to the administrator.

Go back to home page
Additional information about this error:
Requested Chapter does not exist!

Also, when I try to review a new post (before saving), I get these errors at the top of the preview page:

Notice: Undefined property: stdClass::$post_notifications_flags in /usr/home/zoka/www/htdocs/blogs/inc/items/model/_item.class.php on line 353
Notice: Trying to get property of non-object in /usr/home/zoka/www/htdocs/blogs/inc/skins/_skin.funcs.php on line 182

The preview post does appear on that page, but below that it says:

404 Not Found
b2evolution cannot resolve the requested URL.

Any ideas on why this is happening and how to fix it?

Thanks.

2 Jun 06, 2016 08:54

Ditto:
"Also, when I try to review a new post (before saving), I get these errors at the top of the preview page:";

however this occurred after upgrade from b2evo- version 6.6.8 to 6.7.2 and 6.7.3.
Issue appears in Bootstrap Blog skin but not in Photo Albums skin, both of which are used in this particular site.

Here is what it looks like from the server error log:

[Sat Jun 04 18:57:52.394749 2016] [:error] [pid 12218] [client xy.abc.stu.wv:52083] PHP Notice: Undefined property: stdClass::$post_notifications_flags in /path/to/b2evolution/inc/items/model/_item.class.php on line 353, referer: http://www.web-site.com/b2evolution/admin.php
[Sat Jun 04 18:57:52.396461 2016] [:error] [pid 12218] [client xy.abc.stu.vw:52083] PHP Notice: Trying to get property of non-object in /path/to//b2evolution/inc/skins/_skin.funcs.php on line 182, referer: http://www.web-site.com/b2evolution/admin.php
[Sat Jun 04 18:57:52.436406 2016] [:error] [pid 12218] [client xy.abc.stu.vw:52083] PHP Notice: Undefined property: stdClass::$post_notifications_flags in /path/to/b2evolution/inc/items/model/_item.class.php on line 353, referer: http://www.web-site.com/b2evolution/admin.php

Best Professional Regards.

3 Jun 06, 2016 18:50

Back to my errors -- here are some entries from my site's script error log yesterday:

PHP Warning: require(/usr/home/zoka/www/htdocs/blogs/inc/../skins_adm/conf_error.main.php): failed to open stream: No such file or directory in /usr/home/zoka/www/htdocs/blogs/inc/_init_base.inc.php on line 88

PHP Fatal error: require(): Failed opening required '/usr/home/zoka/www/htdocs/blogs/inc/../skins_adm/conf_error.main.php' (include_path='.:/usr/local/php-5.4.23/lib/php') in /usr/home/zoka/www/htdocs/blogs/inc/_init_base.inc.php on line 88

b2evolution error: Requested Chapter does not exist! in /usr/home/zoka/www/htdocs/blogs/inc/chapters/model/_chaptercache.class.php at line 181 / REQUEST_URI: /blogs/admin.php / HTTP_REFERER: -

PHP Notice: Undefined property: stdClass::$post_notifications_flags in /usr/home/zoka/www/htdocs/blogs/inc/items/model/_item.class.php on line 353

PHP Fatal error: Call to undefined method AbstractSettings::get() in /usr/home/zoka/www/htdocs/blogs/inc/skins/_skin.funcs.php on line 1583

4 Jun 08, 2016 10:55

ditto:

preview of my draft (even after having saved it as draft) does not work. To get it work I have to save the draft as private, community etc. But I would prefer to have a preview of the draft as it had worked till the last version, before I updated to 6.7.3

Thanks for a fix
will

5 Jun 08, 2016 19:20

I tried deleting all b2evo files from my blog installation, uploading again and installing. But I'm still having the same problems, where I can't create and save a new post, or preview it before saving. I'm using the default skin (as I did in 6.6.7).

7 Jun 09, 2016 01:28

Thanks. I applied this fix, which took care of the post_notifications_flag error in Preview, but not the _skin.funcs.php error:

Notice: Trying to get property of non-object in /usr/home/zoka/www/htdocs/blogs/inc/skins/_skin.funcs.php on line 182

Also, this does not address my main problem, the "Requested Chapter does not exist!" fatal error when trying to Save (or Save & edit) a new post (see my original post in this topic, above). It would be great if there's a fix for this.

8 Jun 09, 2016 02:47

Yes I know, someone from the dev team will check that tomorrow.

9 Jun 10, 2016 01:40

@michaelz wrote earlier:

Notice: Trying to get property of non-object in /usr/home/zoka/www/htdocs/blogs/inc/skins/_skin.funcs.php on line 182

OK, we found the bug here: https://github.com/b2evolution/b2evolution/commit/45b01cb941b268cc15f9828c1c73782e9e740c5d

@michaelz wrote earlier:

Also, this does not address my main problem, the "Requested Chapter does not exist!" fatal error when trying to Save (or Save & edit) a new post (see my original post in this topic, above). It would be great if there's a fix for this.

This one we cannot reproduce. Please show us full screenshots of the steps to reproduce the bug. We'd especially like to see what category you have selected in the sidebar of the post edit form before this happens.

Thanks.

10 Jun 10, 2016 19:00

Okay, I'm including screen shots that show how the error occurs. (I'm not able to attach more than one file at a time to these comments.)

The first one shows an attempt to create a test post.

11 Jun 10, 2016 19:05

The second screen shot shows the error that results from clicking the Save button on the test post.

Note that it says "tio" in the upper left corner. This also appears briefly when bringing up the front page, archived posts, etc. This didn't happen before the latest upgrade, so perhaps it is a clue to the errors.

12 Jun 10, 2016 19:08

The third screen shot shows the sidebar of the post edit form before saving. This blog has never used categories (all posts go under "Uncategorized") so I don't set any category when creating/editing a new post.

13 Jun 10, 2016 19:10

Finally, here's a screen shot of the Categories section of the Dashboard.

14 Jun 12, 2016 00:37

@michaelz Why did you separate screenshot 1 and screenshot 3? Are these not the same page?

Normally there should be a "Categories" panel above "Properties" in screenshot 3.

Your error is a consequence of this box missing. Do you know what configuration you made to make this "Categories" box disappear?

A quick workaround would be to make the Categories selection re-appear, even if you always use the same category.

15 Jun 12, 2016 00:46

Yes, screen shots 1 and 3 are both of the post edit form. I realized after posting the first one that I hadn't included the sidebar.

I have no idea why the Categories box does not appear in the sidebar. I would guess it has something to do with my original blog creation, years ago. I suppose I will have to hunt around to see if I can find how to make Categories appear there now.

16 Jun 12, 2016 02:01

I can't find where or how to restore Categories to the post edit form sidebar. The only thing I changed from the standard configuration is conf/_basic_config.php. This one goes back to 2011, so I'll try creating a new one from the current _basic_config.template.php and see if that helps.

17 Jun 12, 2016 02:14

No change resulted from creating a new basic_config.php.

Here are the errors i get (in the server script errors log) when I try to create and save a new post:

b2evolution error: Requested Chapter does not exist! in /usr/home/zoka/www/htdocs/blogs/inc/chapters/model/_chaptercache.class.php at line 181 / REQUEST_URI: /blogs/admin.php / HTTP_REFERER: -
b2evolution error: Requested Chapter does not exist! in /usr/home/zoka/www/htdocs/blogs/inc/chapters/model/_chaptercache.class.php at line 181 / REQUEST_URI: /blogs/admin.php / HTTP_REFERER: -
PHP Notice: Trying to get property of non-object in /usr/home/zoka/www/htdocs/blogs/inc/skins/_skin.funcs.php on line 182
b2evolution error: Requested Chapter does not exist! in /usr/home/zoka/www/htdocs/blogs/inc/chapters/model/_chaptercache.class.php at line 181 / REQUEST_URI: /blogs/admin.php / HTTP_REFERER: -

Does this provide any clues to fixing the Categories problem?

If I can't fix this error, I'm thinking of downgrading to a previous release of b2evo (6.6.7 or later). Which ones are still compatible with the database I used in 6.6.7 (my previous installation, which still functioned normally)?

I haven't been able to update this blog all week, so I'd really like to take care of this. . .

19 Jun 12, 2016 18:52

That did it! I didn't know that setting was under the Features tab.

I'm still getting this message at the bottom of new posts after Save (see screen shot), but it doesn't seem to affect the published post.

Thanks again.

21 Jun 14, 2016 01:42

Please try b2evo 6.7.4 and let us know if there are remaining issues.

23 Jun 14, 2016 02:08

@fplanque wrote earlier:

Please try b2evo 6.7.4 and let us know if there are remaining issues.

i will (but probably not until next week at the earliest).

24 Jun 14, 2016 03:39

Ah much more interesting to see "invalid request" rather than just "404".

If you still get this in b2evo 6.7.4, check:

  • what the visibility status of the post is
  • if that status is actually allowed to be displayed in the front office

If you are trying to view a status that is not allowed to show, it is normal that you can't see it.

25 Jun 14, 2016 03:41

About "tio": you might have inadvertently added those letters to the top or bottom of one of your config files while editing them.


Form is loading...