![]() |
Non Object Error in Wordpress I am creating a small plugin to update a database table. The updater scriipt works properly when included in a Wordpress page or post template, but not when included in a script run by a form action from the plugin. (action="script.php") This is the error: Quote:
Code: global $wpdb;What is the correct way of getting the Wordpress functions, and framework, etc., loaded in this small script? Many thanks for your consideration and help! Kirk |
Re: Non Object Error in Wordpress require( './wp-load.php' ); (edit the path) |
Re: Non Object Error in Wordpress Quote:
The script is at Code: /var/www/html/wp-content/plugins/my-plugin/my-file-name.phpCode: /var/www/html/wp-load.phpNext step is to get it to use a relative path. I'll keep working on that! Many, many thanks! |
Re: Non Object Error in Wordpress P.S. - If the script allowed me to give more thanks, I'd have added three hundred and seventy-four just to start, with more to come later! |
| All times are GMT -6. The time now is 06:27 PM. |