On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Constants may only evaluate to scalar values…

UserPost

3:31 pm
6 Apr 2008


meanpc

New Member

Louisiana

posts 2

1

First, thanks Andy for creating and maintaining Simple Forum. Theres a big need for this for many WordPress users.


I just installed Simple Press Forum v. 3.03, and I am getting this error:


Warning: Constants may only evaluate to scalar values in … /wp-content/plugins/simple-forum/sf-includes.php on line 57


It shows up in the header, and the forum page looks all messed up.


I'm using Wordpress 2.3.3


I'm hosting at MediaTemple, here are the version of LAMP they are using:

The (gs) Grid-Service currently features the following versions of software:

  • PHP 4.4.7-1
  • PHP 5.2.2-1
  • Perl v5.8.4
  • Python v2.3.5
  • Apache 2.0.54
  • MySQL 4.1.11
  • PostgreSQL 7.4.7

Would appreciate any guidance you can give to resolve this problem.


Thanks

Lonnie


4:34 pm
6 Apr 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

2

Can you access the admin options pages? Hopefully you can. take a look at Forum > Options > Admin tab 'Forum Administrator' section. This should hold your Admin User ID and a display name you can use on the forums.


If either are empty try filling them with correct values and savibng the options. Let me know what the current values are…

12:45 am
7 Apr 2008


meanpc

New Member

Louisiana

posts 2

3

Andy,

I am able to login to the admin panel. The admin user ID was set to 1. The display name was set to 'Array'. When I changed it and hit save, the page would refresh with display name set to Array again. With the plugin activated, I am still receiving that error message on all pages.

Thanks,

Lonnie


1:24 am
7 Apr 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

4

The most likely cuase of this was double-clicking on the 'install' button - at least that is the only way we have managed to recreate the problem. The wp table 'usermeta' is badly designed in that it will allow duplicates to be saved. You will find that this is amost certanly the problem. If you have installed this for the first time then the answer is to uninstall. if this was an upogarde then those suplicates records have to be removed.

Please go to the FAQ forum for Simple:Press Forum and see the topic on changing settings….

5:46 am
14 May 2008


stickmanlabs

Guest

5

Hi-


I ran into this problem and the uninstall did not help so I simply modded the line 57 to read the following instead:


define('ADMINNAME', is_array($_admin_name = sf_attribute_escape(get_usermeta(ADMINID, 'sfadmin'))) ? $_admin_name[count($_admin_name) - 1] : $_admin_name);


Maybe an idea for a patch? I get the last entry in the array as that should be the most recent. Thanks for the great software!


Kevin Miller

stickmanlabs.com

1:00 pm
14 May 2008


-Radio-

Moderator

Florida - USA

posts 558

6

actually, there is no way to tell which entry is being edited from the admin pages… the best idea is to correct the fault in the database…


Instructions are in the FAQ section on this forum

1:38 pm
14 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

7

if the word 'Array' appears in any field it can cause this problem and just requires editing and saving.



Reply to Topic: Constants may only evaluate to scalar values…

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 7 + 5        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

10 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)