SchumacherFM / wordpress-to-hugo-exporter

Hugo is static site generator written in golang. Wordpress is a tool for remote access to your server ;-) ❗️Contributions welcome!
https://gohugo.io
GNU General Public License v3.0
692 stars 95 forks source link

Call to member function export() on null: solution #60

Closed amca01 closed 5 years ago

amca01 commented 6 years ago

This issue was closed, but in fact the solution is to include the line

global $je;

in the file hugo-export.php just before the line $je = new Hugo_Export();. For some reason php (or at least version 5.6) seems to have trouble with global variables.

SchumacherFM commented 6 years ago

Can you please send a pull request, which I can merge? Thanks!

SchumacherFM commented 5 years ago

Seems like solved and ~1 year old, so I'm closing this issue.