Support Forum
BobChristensen
http://www.theformtool.com
a bit puzzled... sticking with the first one (which is what we have been working)...
you are only seeing this error in the admin?? on all sp admin pages or panels? by page, I mean one loaded with the far left wp nav menu... by panel I mean one loaded within the current page load via the sp accordion style menu... on pages or each panel load?
and what about non sp admin pages?
since this is admin and not on the front end, perhaps you can enter a bit of debug code... in the file:
simple-press/sp-api/sp-api-common-display.php
around line 120, before
$count = 0;
could you try adding:
ashow($sfglobals['special_rank']);
ashow($memberRanks);
and then around line 122 before
if (in_array($key, $memberRanks)) {
could you try adding:
ashow($key);
and see what data we get...
Visit Cruise Talk Central and Mr Papa's World
Thanks. I've asked our programmer to install the snippet.
We see this warning: Warning: in_array() [function.in-array]: Wrong datatype for second argument in /problem-with-post-edit-buttonome/content/07/8498207/problem-with-post-edit-buttontml/wp-content/plugins/simple-press/sp-api/sp-api-common-display.php on line 122
on all Admin pages, WP and SP.
BobChristensen
http://www.theformtool.com
okay, thanks... interested in the answer since we cannot duplicate nor has anyone else reported... and the error says the 2nd argument is not an array, but it should be...
Visit Cruise Talk Central and Mr Papa's World
Does this mean that the graphic itself is a problem for some reason?
[Image Can Not Be Found]
BobChristensen
http://www.theformtool.com
BobChristensen
http://www.theformtool.com
just gets odder and odder... dont worry about the key, looks fine...
the real issue is the second piece of data you output with
ashow($memberRanks);
it shows NULL, which should be fine... right before that is a check
if (empty($sfglobals['special_rank']) || empty($memberRanks)) return $userRanks;
which should find the same variable empty and just abort... and php does treat NULL as a condition for empty... so a bit confused...
perhaps something going awry with the NULL value which is actually in mysql coming over to php (maybe converted to string vs php null??)... will have to do some research... but oddly, its been like this forever and not sure why its only affecting you... can see in many databases we test with the exact same values...
In fact, I can change it for my user in the db to mysql null and I cannot make the same error occur...
so for the user in question, can you look in your mysql db... table sfmembers, column special_ranks and tell me what you have... do this for the user_id that is seeing the error in the admin...
so does this happen for all users in the admin? or just your particular wp admin?
Visit Cruise Talk Central and Mr Papa's World
We're checking on your last request now.
We're experiencing identical symptoms on both our instances, the operating site and our test site. When we step back a generation on SP, the symptoms go away.
BobChristensen
http://www.theformtool.com
okay let us know please...
are the operating site and test site on the same server?
Visit Cruise Talk Central and Mr Papa's World
No. They are completely separate server locations, in different countries. Operational site is on GoDaddy.
BobChristensen
http://www.theformtool.com
1 Guest(s)