Log in

View Full Version : Help?


303Nate
12-22-2004, 07:00 PM
Hello. I when I went to my forum last night I recieved a error message. I wanted to ask if anyone could help me fix it.

This is what it says..

Warning: Constants may only evaluate to scalar values in /home/*****/public_html/forums/includes/init.php on line 770

This is what is there..


765> // now take all the usergroup bitfields and define constants for spot permission checks
766>foreach($_BITFIELD['usergroup'] AS $_permgroup)
767>{
768> foreach($_permgroup AS $_constname => $_constval)
769> {
770> define(strtoupper($_constname), $_constval);
771> }
772>}

Thanks

Zachery
12-22-2004, 07:12 PM
Hello. I when I went to my forum last night I recieved a error message. I wanted to ask if anyone could help me fix it.

This is what it says..

Warning: Constants may only evaluate to scalar values in /home/*****/public_html/forums/includes/init.php on line 770

This is what is there..


765> // now take all the usergroup bitfields and define constants for spot permission checks
766>foreach($_BITFIELD['usergroup'] AS $_permgroup)
767>{
768> foreach($_permgroup AS $_constname => $_constval)
769> {
770> define(strtoupper($_constname), $_constval);
771> }
772>}

Thanks
http://www.vbulletin.com/forum/showthread.php?p=780664#post780664

Andrew
12-22-2004, 07:13 PM
Hello. I when I went to my forum last night I recieved a error message. I wanted to ask if anyone could help me fix it.

This is what it says..

Warning: Constants may only evaluate to scalar values in /home/*****/public_html/forums/includes/init.php on line 770

This is what is there..


765> // now take all the usergroup bitfields and define constants for spot permission checks
766>foreach($_BITFIELD['usergroup'] AS $_permgroup)
767>{
768> foreach($_permgroup AS $_constname => $_constval)
769> {
770> define(strtoupper($_constname), $_constval);
771> }
772>}

Thanks
You need to contact your host and have them upgrade Zend to the latest version. It's cause by them upgrading to the new version of PHP which is not compatible with the older version of Zend.