highergroundstudio / myContest

myContest wordpress contest plugin

Home Page:http://highergroundstudio.github.io/myContest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal error

highergroundstudio opened this issue · comments

I keep getting “Fatal error: Cannot use string offset as an array in /wp-content/plugins/mycontest/myContest.php on line 669” when someone votes on an image

I need to know what version of wordpress, mycontest, and php you are using to answer this. This is a problem with authentication of the request. Also if I could see where the problem is, that would greatly help.

The version of WP is 3.5.1 and PHP version 5.2.17

I just downloaded mycontest this morning so I am using the latest version

There is actually a new version that I released today but is not approved by codecanyon yet. I have released it on my update system which links into wordpress. You just need to add your purchase code to the myContest settings page found under the wordpress admin. I need to add this to the docs but have not done this so far. I touch on how to do this in the 1.3.0 version release video. Try updating to version 1.3.1 and let me know if it fixes the bug. I test version 5.2.17 specifically on my localhost, so I doubt that is causing this. Is there a url I can see this error on?

I now get this error when I plug the shortcode into a new page and save: http://imgur.com/v1i6kwi

and this error when I go to vote: http://imgur.com/XPPoVYM

What other plugins do you have installed? Something else is messing with the nonce values for some reason.

I see that you have myContest debug turned on. What does it say under contest in the help tab?

Plugins I have active are:
Jetpack
PHP Server Info
MyContest

Nothing else.

Under debug:

Array
(
[settings] => Array
(
[sort] => none
[regvoteonlyhtml] =>
[s_date] =>
[s_h] =>
[s_mn] =>
[s_txt] =>
[e_date] =>
[e_h] =>
[e_mn] =>
[e_txt] =>
[e_showentries] =>
[sharedesc] =>
[votetime] => 86400000
[votenoshow] =>
)

[entries] => Array
    (
        [51ba0d91d9eed] => Array
            (
                [entryTitle] => dacadc
                [url] => 
                [entryID] => 51ba0d91d9eed
                [author] => acddacd
                [authorurl] => 
                [votes] => 0
                [descr] => 
                [img_url] => <domain>/tpptest/wp-content/uploads/2013/06/flyer_Page_21.jpg
            )

        [51ba0d98d9eee] => Array
            (
                [entryTitle] => 12313
                [url] => 
                [entryID] => 51ba0d98d9eee
                [author] => 123123
                [authorurl] => 
                [votes] => 0
                [descr] => 
                [img_url] => <domain>/tpptest/wp-content/uploads/2013/06/Sheilah-Hogan-McDonald-2r.jpg
            )

        [51ba0d9dd9eef] => Array
            (
                [entryTitle] => 123123
                [url] => 
                [entryID] => 51ba0d9dd9eef
                [author] => afdfa
                [authorurl] => 
                [votes] => 0
                [descr] => 
                [img_url] => <domain>/tpptest/wp-content/uploads/2013/06/Naomi-Coffey1.jpg
            )

    )

)
Settings Array Debug

myContest_settings Object
(
[settings] => Array
(
[debug_on] => 1
[purchase_code] =>
)

)

I removed all plugins but MyContest and now I get an error on line 683

I am not sure what to do without being able to access at least the wordpress admin of your site to be able to test what is going wrong. If you could add me as a admin. I could figure this out, otherwise I am not sure what is causing this.

What email address would you like me to add?

EDIT: Sent

Got it and logged in. I will look at this tomorrow and see what is wrong.

This is a problem only with the shortcode. I will figure out what is causing and fix it.

Thank you!

On Fri, Jun 14, 2013 at 11:42 AM, Kyle King notifications@github.comwrote:

This is a problem only with the shortcode. I will figure out what is
causing and fix it.


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-19464737
.

Jamil Velji | Account Executive | Metroland Digital

t. 1.888.927.0736 | jamil@metrolanddigital.com

metrolanddigital.com | www.metroland.com

I am fixing this with feature request #10 as well.

I've similar issue with new version 1.3.1 what can be the possible cause for it ?

I am working on this by I have been insanely busy with school since my two summer semesters overlap for two weeks and I have finals too.

Version 1.4.0 came out today and should fix this. Please follow the update instructions to install and let me know if this fixes the problem.