Moved WP-Installation with WPDM to new server – Files disappeared

Viewing 4 posts - 1 through 4 (of 4 total)
#134011

Klaus Friese
Member

Hi,

We’re using WPDM for the software download area on our website, I created several downloads and added the shortcodes to a page in wordpress. Worked great!
Now I had to move the full installation to a new server. I copied the full database and the full wordpress folder to the new server, I changed some settings and the site is working.
Problem: I can’t download my files. I see ‘0 File(s)’ and the download link does not work.
I found the entry for the file in the wp_postmeta table, I changed the value for meta_key=__wpdm_files to the correct value
Example:

'a:1:{i:0;s:39:\"wp-content/uploads/files/version_7_0/doc/jd_qs_d.pdf\";}'
Still doesn't work.
I assigned the file again in the backend - download is working now, but the postmeta path has the same value as before:

‘a:1:{i:0;s:52:\”wp-content/uploads/files/version_7_0/doc/jd_qs_d.pdf\”;}’
Question now: Why does the download not work before I reassigned the file? Path is correct, the must be another value, but I don’t see it.
I don’t like to reassign all files, I’m looking for an sql query to solve this.

#134021

Klaus Friese
Member

I got it – the problem is in the WordPress serialization ..

#134031

Nayeem Riddhi
Moderator

Has the problem been resolved? please let me know.

Thanks.

#134093

Klaus Friese
Member

Yes, I found a solution/workaround.

Problem is: after moving to a different server the serialized data for the files is not longer valid. So downloads doesn’t work.

I used the workaround here:

Migrate WordPress Site from Local Development to Live Server and fix serialized data issues


and changed the maybe_unserialize() method.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Moved WP-Installation with WPDM to new server – Files disappeared’ is closed to new replies.