1 to 7 of 7
Hi,
When I try to view Purchases > Custom I got this error
Warning: Invalid argument supplied for foreach() in /home/XXXXX/public_html/XXXXX.com/wp-content/plugins/XXX/admin/custom.php on line 19
How to fix it?
Thanks.
Can you try re-downloading the plugin and upload admin/custom.php again now, and let me know whether that solves the problem.
...re-downloading the plugin and upload admin/custom.php, but still not solving the problems.
Hmmm...I'd double-check it if I were you. The fix I made made the difference to the demo site.
You can also open admin/custom.php and check for the existence of this line near the top of the page:
global $oiopub_lang, $oiopub_set, $oiopub_statusmenu1_array;
I still don't understand how to fix it. It's only when viewing the Purchases > Custom and the other function is fine..
The error was caused by a missing global variable in the admin/custom.php file. Replacing that file with the one in the latest download should fix it. If not, then I'd suggest uploading the entire plugin again just to be safe.
My plugin is ok now! I just put the code on line 13 after the
//custom manager
function oiopub_custom_manager() {
Thanks Simon for you support.
1 to 7 of 7