Fatal error: $post is null?

I’ve fixed the problem now. I got hold of my old database dump file from the old server.

The reason the indexes weren’t added is because the sql contained rows like:

CREATE ALGORITHM=UNDEFINED DEFINER=`tarikbil`@`localhost` SQL SECURITY DEFINER VIEW `wp_

…which was not getting executed due to insufficient user permissions. This meant the consequent indexing lines were not executed either.

Solution was to comment out those lines, clear the new database then re-import. It’s all good now and I can add posts again. 🙂

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)