Welcome to WebmasterWorld Guest from 54.198.55.167

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

the content and the excerpt throwing error messages

     
11:46 am on Feb 5, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 7, 2004
posts: 933
votes: 0


Both the_content and the_excerpt are throwing error messages ("on line: 506") and end script.

a) I changed theme to default theme, but get the same exact thing.
b) I therefore re-uploaded wp-includes and wp-admin thinking it was an file transfer issue, but get the same exact thing.
c) Since it is problem affecting all themes and not in core WP file, I suspect it is in the database (possibly an hack/sql). I searched in the db but found nothing... a daunting task.


Anyone having another idea ?

Is there a server-side script that can basically take my content (mostly posts and images) from old blog database and repost in a new blog ?

Cheers
1:21 pm on Feb 5, 2018 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4005
votes: 245


It sounds more like a problem with a plugin that is out of date. To diagnose your problem, view a page's source code (while not logged in to your Admin interface) and see what is on "line 506". That can make it easier to narrow down the cause.

If you want to use your existing db in another installation of WP, you can do that but it will include whatever is causing the problem. Importing only the content tables won't include enough data to function.
3:08 pm on Feb 6, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 7, 2004
posts: 933
votes: 0


Not2Easy, you were right. It was a plugin throwing the error, I should had check the plugin before doing all the rest. Problem resolved thanks.

As for the database question, there is some misunderstanding. The script itself is pretty forward< i was llooking for a quick fix, here is a way among many others; :
a) On old blog, do a XML map to get all post URLs
b) On new blog, do a Curl (or query) on each post URL to get content and images (large size only)
c) On new blog, do wp_insert_blog with media

Cheers
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members