• Resolved andi22

    (@andi22)


    Hi 123host,

    I found multiple instances of the following error in the domain
    logs:

    PHP Warning: count(): Parameter must be an array or an object that
    implements Countable in
    …/wp-content/plugins/speakout/includes/class.petition.php
    on line 321

    What could that be and how could I handle that problem?

    Thanks for your assistance!

    Andy

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author SpeakOut!

    (@123host)

    Hi,. Can you please send a link to your petition, I will check it out.

    Thread Starter andi22

    (@andi22)

    OK, I sent you the link to my site as a support ticket on your website.

    Thank you for your assistance!

    Thread Starter andi22

    (@andi22)

    Hi 123Host,

    never heared back from you … did you receive my ticket?

    Plugin Author SpeakOut!

    (@123host)

    I thought I had replied but now I can’t see where I did that. From memory I said that I can’t recreate that issue, there are no errors in the log from my public site or development site.

    But I will check again. Can you post the URL here, sorry for the mixup.

    Thread Starter andi22

    (@andi22)

    No, problem, thanks for your efforts.

    Can I send you the URL via any kind of personal message? Don’t want to post it here for everyone …

    Plugin Author SpeakOut!

    (@123host)

    Head to https://SpeakOut.123host.net.au/contact and drop me a note.

    Thread Starter andi22

    (@andi22)

    Ok, thanks! I have sent you the URL.

    Plugin Author SpeakOut!

    (@123host)

    It looks to me like you are using version 1.8 which is really out of date. The current version is 1.16.2

    From the source code in your page: <!-- SpeakOut! Email Petitions 1.8 -->

    I suggest you update the plugin and then see if it keeps throwing errors.

    Thread Starter andi22

    (@andi22)

    Ok, so let’s do so. Thanks!

    Plugin Author SpeakOut!

    (@123host)

    I see you have upgraded to 1.16.2 – did that solve it?

    Thread Starter andi22

    (@andi22)

    Yes, it seems so. Thank you for your assistance.

    But there is still an other issue, causing long loading times of our frontpage. We have there a couple of signiturecount-shortcodes [signaturecount id=”…”]. In our database we have now over 900.000 signatures cuasing aroung 90 MB db-storage and I suspect the problem to get even worse with extending signatures.

    Sorry for asking so much questions, but is there anything we could do in order to speed up the loading times? I think it would’t be necessary to load all of the petitions from the db if only the signature-count of about 8 – 10 shall be showed.

    Thank you! I just made a donation for the great job you are doing with that plugin.

    Plugin Author SpeakOut!

    (@123host)

    If you go into dashboard > SpeakOut! > settings > signature list tab, the 3rd item down rows is likely blank. If you add the number of signatures to display in there (50?) it will only show that many rows.

    Hope that helps.

    Thread Starter andi22

    (@andi22)

    Thank you, but that field wasn’t blank. “50” was already filled in there, I reduced that now to “20”.

    But I think that won’t make any difference, because we nowhere show the list of subscribers on the front end.

    Plugin Author SpeakOut!

    (@123host)

    OK, then I am not sure what could be loading so much data. Even if you have millions of signatures, it is only going to get the number in that field.

    Perhaps your database needs to be optimised. That is possible if you have a huge amount of data.

    Thread Starter andi22

    (@andi22)

    mhh, I optimise the db every 1-2 weeks …

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Error: Parameter must be an array or an object’ is closed to new replies.