Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Warnings on Admin pages
Avatar
Bob Christensen
Olympia, WA
Member
Free Members
sp_UserOfflineSmall Offline
Jul 20, 2012 - 8:23 am

Here is the new db screen shot. As you can see, the trademark symbol is no longer reported, consistent with removal yesterday. However, the warnings remain.IMG_20072012_161902.pngImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 20, 2012 - 7:20 pm

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...

Avatar
Bob Christensen
Olympia, WA
Member
Free Members
sp_UserOfflineSmall Offline
Jul 20, 2012 - 11:33 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 21, 2012 - 12:28 am

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...

Avatar
Bob Christensen
Olympia, WA
Member
Free Members
sp_UserOfflineSmall Offline
Jul 21, 2012 - 7:55 pm

Does this mean that the graphic itself is a problem for some reason?

[Image Can Not Be Found]

Avatar
Bob Christensen
Olympia, WA
Member
Free Members
sp_UserOfflineSmall Offline
Jul 21, 2012 - 8:03 pm

Here are two graphics that result from your query, in order:

 

IMG_22072012_034801.pngImage Enlarger

IMG_22072012_035624.pngImage Enlarger

 

We've looked at our old database and see that the "Special Rank" functionality seems new.

Our programmer asks, " What value of key (rank) do we need to have?"

 

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 21, 2012 - 10:06 pm

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?

Avatar
Bob Christensen
Olympia, WA
Member
Free Members
sp_UserOfflineSmall Offline
Jul 22, 2012 - 2:03 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 22, 2012 - 3:56 pm

okay let us know please...

are the operating site and test site on the same server?

Avatar
Bob Christensen
Olympia, WA
Member
Free Members
sp_UserOfflineSmall Offline
Jul 22, 2012 - 4:02 pm

No. They are completely separate server locations, in different countries. Operational site is on GoDaddy.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626