September 11, 2019 at 7:47 pm #1137224
I’m having a problem accessing older blog posts in the backend edit mode of WordPress. I have posts going back to 2001. When I look for my posts to edit them, they seem to be missing (although, they are showing up on the frontend. I can edit posts that go back only as far as May 2011. The rest of the content (pages, etc) see to be there and editable.
I’m getting this error:
An error of type E_ERROR was caused in line 48 of the file /public_html/wp-content/themes/sentence/includes/admin/compat.php. Error message: Uncaught Error: Cannot use string offset as an array in /public_html/wp-content/themes/sentence/includes/admin/compat.php:48 Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(286): avia_backend_compatibility_custom_field_filter('', 62) #1 /public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters('', Array) #2 /public_html/wp-content/themes/sentence/framework/php/function-set-avia-frontend.php(262): apply_filters('avia_post_meta_...', '', 62) #3 /public_html/wp-includes/class-wp-hook.php(288): avia_post_meta(Object(WP_Post)) #4 /public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5 /public_html/wp-includes/plugin.php(531): WP_Hook->do_action(Array) #6 /public_html/wp-includes/class-wp-query.php(4220): do_action_ref_array('the_post', Array) #7 /public_html/wp-includes/query.php(1139): WP_Query->setup_postdata(Object(WP_Post))
They do show up in recovery mode.
September 12, 2019 at 4:51 pm #1137596
- This topic was modified 2 months, 1 week ago by outtacontext.
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ).
- Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.
NikkoSeptember 12, 2019 at 5:00 pm #1137602September 13, 2019 at 9:13 am #1137836
Thanks for giving us admin access.
You’re using php version 7.2.22, can you try to use version 7.1 instead?
The last update for sentence theme is only compatible to php 7.1
NikkoSeptember 13, 2019 at 8:33 pm #1138173September 14, 2019 at 3:13 pm #1138325
The last time it was updated was 2018. We no longer release updates to this theme.
You can read it in Kriesi’s blog: https://kriesi.at/archives/wordpress-5-0-and-enfold-4-5-1
Since wordpress have deprecated some functions in their latest releases since 5.0 (major update) outdated themes no longer work properly.
Can you give us ftp access? we’ll try to enable wordpress debugging and check logs for errors, maybe there’s a quick fix to it otherwise, we will suggest using another theme of your choice.
NikkoSeptember 14, 2019 at 5:25 pm #1138357September 14, 2019 at 5:31 pm #1138360September 14, 2019 at 6:21 pm #1138374
Thanks for giving us ftp access. Just make sure to put login/ftp credentials in private content, so it’s only seen by you (thread creator) and us (moderators).
I only touched 2 files, wp-config.php (enabled debugging and logging of errors) then compat.php (enfold/includes folder).
In line 48 of compat.php, I replaced:
$custom_fields['slideshow']['slideshow_image'] = "";
$custom_fields = array( 'slideshow' => array( 0 => array( 'slideshow_image' => '') ) );
Posts are now showing properly.
NikkoSeptember 14, 2019 at 6:42 pm #1138377September 14, 2019 at 6:45 pm #1138378September 14, 2019 at 6:54 pm #1138379September 15, 2019 at 1:17 am #1138431
Also, okay to delete the FTP login?
Yes, it’s fine to remove the ftp login since it’s already fixed.
Can you tell me why that file hadn’t been updated when I put in the last iteration of Sentence?
I’m not really sure regarding that since you are already using the latest version 4.1 but not sure why there’s a difference in compat.php. Please check private content.
Anyway, we’re glad that we could help and thanks for using our theme. :)
NikkoSeptember 15, 2019 at 4:53 pm #1138532September 16, 2019 at 12:32 am #1138598
The topic ‘Problem Accessing Older Blog Posts’ is closed to new replies.