Support » Plugin: WordPress Infinite Scroll - Ajax Load More » ALM is Throwing strtolower() Error at Beginning of Loop

  • Resolved desmond

    (@wonton)


    Load More is working but I’m also getting ‘Warning: strtolower() expects parameter 1 to be string, array given’ and after disabling plugins, it appears to be a conflict with Visual Composer. Anyone else run into this issue or have a workaround to make this work with VC plugin?

    ALM v2.7.3
    Visual Composer v4.7
    Wordpress v4.3

    https://wordpress.org/plugins/ajax-load-more/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author dcooney

    (@dcooney)

    Nice find. I will install VC and test this soon.

    I’m getting this error too. Mine seems to be a conflict with Adminimize. https://wordpress.org/plugins/adminimize/

    The deets:
    Adminimize Version 1.8.5
    Ajax Load More 2.8.0
    Wordpress 4.3.1

    Error Warning: strtolower() expects parameter 1 to be string, array given in /home/public_html/wp-includes/formatting.php on line 1426

    Great plugin by the way! Saved me a lot of time.

    Plugin Author dcooney

    (@dcooney)

    Hi Kozaz,
    That error would be coming from Adminimize.

    Is there anyway you could reach out to them to see if they have any idea why this is happening?

    I get the same error and it seems that Adminimize is the guilty plugin but I need it. Any solution or any plugin to cover for Adminimize?

    I fix this error make this:

    1. Open ajax-load-more.php from plugins folder.
    2. Change the javascript ajax-load-more.min.js loader to ajax-load-more.js (line 219 in function alm_enqueu_scripts).
    3. In the file ajax-load-more.js go to function alm.AjaxLoadMore.success (line 491)
    4. Search the paragraph of the data asignation: alm.data = $(data); // Convert data to an object
    5. Insert before the line alm.data = … this code:
    data = data.substr(data.lastIndexOf(“
    “) + 6);

    It’s look like this:

    alm.AjaxLoadMore.success = function (data) {
    if(alm.previous_post){ // Get previous page data
    alm.AjaxLoadMore.getPreviousPost();
    }
    data = data.substr(data.lastIndexOf(“
    “) + 6);
    alm.data = $(data); // Convert data to an object

    Upload the files and enjoy!!

    Has this already been merged to ALM core? I’m trying this plugin and facing the same issue with Adminize. However i need that plugin, but editing plugin files is no choice cause they are lost on every update and thats no clean solution.

    Plugin Author dcooney

    (@dcooney)

    Hi Tobias,
    No it is not, I completely missed this post from @sirocus.

    I’ll need to test this to make sure nothing breaks for users not running adminimize.

    Plugin Author dcooney

    (@dcooney)

    This fix did not work when I merged the code in.

    Plugin Author dcooney

    (@dcooney)

    Update on this… This issue has been fixed and will be included in ALM 3.0 which should be released in the next 1-2 weeks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘ALM is Throwing strtolower() Error at Beginning of Loop’ is closed to new replies.