• Resolved alfiedawes

    (@alfiedawes)


    Hey,

    I think I broke something, I’m getting 2 errors on the templates list admin page:

    Warning: usort() expects parameter 1 to be array, null given in C:\wamp\www\crowcreation\wp-content\plugins\fetch-tweets\include\class\backend\list_table\FetchTweets_ListTable_.php on line 269

    and

    Warning: array_slice() expects parameter 1 to be array, null given in C:\wamp\www\crowcreation\wp-content\plugins\fetch-tweets\include\class\backend\list_table\FetchTweets_ListTable_.php on line 287

    Which results in no templates being listed. I can still see the ‘plain’ settings tab. All template files I believe are intact, and I have tried uninstalling/reinstalling the plugin. Also tried commenting out these lines in the file, which removes errors, but still no templates are listed.

    I’m working on a localhost using wamp, so not sure if this could have caused the issue.

    I also imported a rule from a backup of another site using a custom template, but have deleted it and is still broken.

    Everything else works fine, but I can’t activate a new custom template for a theme 🙁

    Thanks for taking a look, let me know if you want me to try anything.

    Plugin is 2.4.8, php is 5.5.12.

    Cheers! 🙂

    Alfie

    https://wordpress.org/plugins/fetch-tweets/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Are you using a custom template? If so, can you post the path of the template file?

    Thread Starter alfiedawes

    (@alfiedawes)

    Hi,

    I was using one, in the plugin template (plugins/fetch-tweets/template/custom template), but have since deleted it. It didn’t have settings.php or functions.php files.

    Just tried the plugin out on another local install and it’s working fine as normal.

    Just tried uninstalling the plugin, deleting all fetch-tweets options from the database (seemed to have paths to the deleted template in there) and reinstalling and I’m still getting the same issue. Really strange.

    It looks like this is really specific to how I’ve been messing around creating and deleting templates so shouldn’t worry too much about it. I don’t really understand how it hasn’t resolved itself by deleting everything and reinstalling, but if I get some time I’ll look into it and let you know.

    Thread Starter alfiedawes

    (@alfiedawes)

    Hi,

    Just updated my other local install to wordpress 4.2 and am now getting the same issue there. Also updated an online website to 4.2 and, although it doesn’t show errors on the template page, no templates are listed.

    I’m pretty sure this is an issue with the plugin on the new wordpress 4.2 release, as now all my sites running that show no templates in the template list.

    Sorry bro, looks like it might be a long evening. Hope I’m wrong 🙂

    Thanks,

    Alfie

    Plugin Author miunosoft

    (@miunosoft)

    Okay, I could confirm the same error in WordPress v4.2. I’ll see if I can fix it.

    Thanks for the report!

    Plugin Author miunosoft

    (@miunosoft)

    @alfiedawes I’ve uploaded a development version, 2.4.9b01 which includes a fix for this issue.

    Let me know if it works for you.

    Thread Starter alfiedawes

    (@alfiedawes)

    That was quick! Looks to be working fine, I’ll let you know if anything comes up.

    Thanks for the quick fix, suppose I ought to rate now 🙂

    Alfie

    Plugin Author miunosoft

    (@miunosoft)

    Glad to hear it works.

    v2.4.9 has been released.

    Thanks for the review by the way!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Templates List Page PHP Error’ is closed to new replies.