- This topic has 2 replies, 2 voices, and was last updated 14 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Wrong datatype for second argument
Tagged: PHP4
I got the following PHP error.
“Warning: in_array(): Wrong datatype for second argument in /srv/www/…/wp-content/plugins/wp-eMember/auth.php on line 338”
I did some search in the forum but I haven’t found the solution in my case. The module was downloaded few months ago.
PHP4 is used, because, due to the server restriction, I couldn’t change to PHP5.
Thanks in advance.
Probably a good idea to download another fresh recent build of eMember from here:
Upgrade the plugin then let me know how it goes.
What is the exact PHP version (eg. 4.5, 4.7)?
You should be using a more recent version of PHP for security reasons anyway. The next version of WordPress is going to require PHP5 at least to run so that’s another good reason to upgrade.
It was PHP 4.3.9.
At first I tried to develop a new site using the old server which was hosting an ancient site. There were some restrictions to PHP and MySQL version, which caused many problems to the new wordpress plugins (wp-eMember was probably one of them).
Anyway, now I put the new site in a brand new host with PHP5 and just updated wp-eMember to the new version as you suggested. It works perfectly (at this moment), thanks.