smccandl
Member
Posted 1 year ago #
I'm getting the following error when attempting to activate the plugin within WP v3.0.1.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /htdocs/wp-content/plugins/easy-post-types/custom-type.php on line 31
The same code works/enables fine in v3.0. Any suggestions?
Thanks in advance.
Scott
http://wordpress.org/extend/plugins/easy-post-types/
smccandl
Member
Posted 1 year ago #
Found the solution. Needed to add the following to httpd.conf and restart apache:
<Directory /home/myuser/mysite.com/htdocs>
suPHP_Engine on
suPHP_UserGroup apache apache
AddHandler x-httpd-php5 .php
suPHP_AddHandler x-httpd-php5
allow from all
</Directory>
Hope this helps someone else.
ecurtain
Member
Posted 1 year ago #
Scott,
Can you tell me how you found your solution? I'd like to try it but I'm not sure how to find the httpd.conf file.
Easy Post Types works great on my local machine and on our HostMonster install (both 3.0.1) but give this fatal error on GoDaddy (which was unfortunately chosen by our client long ago)
Thanks
ecurtain
Member
Posted 1 year ago #
For now, just disabled Easy Post Types and written my own register_post_type function.
Don't know if it's a GoDaddy issue or what, but at least the plugin works on our sites hosted elsewhere.
Hi,
i've the same error :
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homez.37/bonsaimu/www/site/wp-content/plugins/easy-post-types/custom-type.php on line 31
I don't understand the Scott (smccandl) solution...
I' ve check the custom-type.php file and i don't see errors or omissions
Anybody can help me, please?
Thanks
relish1227
Member
Posted 1 year ago #
I also have this issue -- it's a brand new 3.0.1 WP install and I have no other plugins installed.
I'm also not sure how to go about Scott's solution above.
Oscar Moana
Member
Posted 1 year ago #
Where this the file "httpd.conf" para add the code?? Can you help me?