Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

the content and the excerpt throwing error messages

         

tomda

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

WebmasterWorld Senior Member 10+ Year Member



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

not2easy

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

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



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.

tomda

3:08 pm on Feb 6, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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