• Resolved Govind Singh

    (@gsp1992)


    Warning: in_array() expects parameter 2 to be array, string given in /home/customer/www/domain.com/public_html/wp-content/plugins/wordpress-popup/inc/front/hustle-module-front.php on line 614

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • adrianaaymerich

    (@adrianaaymerich)

    I’m having the same warning.
    Appeared when updated the plugin.

    I will comment you out what I did but I won’t recommend to change the code and wait for them to update and properly fix this warning.

    The code in line 614 in the mentioned file is:

    if ( in_array( 'adblock', $settings['triggers']['trigger'], true ) ) {
    							$enqueue_adblock = true;
    						}

    and I update it to check transform always that content to an array:

    if ( in_array( 'adblock', (array)$settings['triggers']['trigger'], true ) ) {
    							$enqueue_adblock = true;
    						}

    Hoping for a response to tackle this issue with an update or something more user (non code) friendly.

    Regards

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @adrianaaymerich & @gsp1992

    I hope you are doing well.

    It is a reported situation, can you make a full backup and try our developer steps?

    -Go into any hustle page

    -Add the &run-migration=441 parameter to the url. Like wp-admin/admin.php?page=hustle&run-migration=441

    Make sure to update the 441 by adding your Module ID.

    https://monosnap.com/file/vv03r7qYkICaYpjXwglw6d9goGllTZ

    This updates the modals’ triggers.

    Let us know the result you got.

    Best Regards
    Patrick Freitas

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @adrianaaymerich

    Just an update for you about it.

    The trigger setting should be an array by default, the issue happens when the migration from the old version to the new version didn’t run to a specific module:

    https://monosnap.com/file/RfpK0fHDvEGHkhwUIcLIwPrIPU29bV

    The above steps should fix the problem.

    Best Regards
    Patrick Freitas

    Thread Starter Govind Singh

    (@gsp1992)

    Can you please explain what I have to do to fix this issue. I really did not understand this.

    Thread Starter Govind Singh

    (@gsp1992)

    @wpmudevsupport12 I tried to put same code but still getting the error
    string(11) “exit_intent”
    Warning: in_array() expects parameter 2 to be array, string given in /home/customer/www/domain.com/public_html/wp-content/plugins/wordpress-popup/inc/front/hustle-module-front.php on line 615

    https://prnt.sc/131f4n0

    Can you please suggest any other option to fix or any other alternate free plugin for pop up email subscriber ?

    Thanks

    Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @gsp1992

    Do not put any code – do not change plugins code. Instead do this:

    1. make sure that you have backup of your site first.

    2. Go to “Hustle” then “Popups” or “SlideIn” or “Embeds” page depending on if on the page with error the popup, slidin or embed should be showing up.

    3. find the popup/slide/in/embed that is supposed to show there on the list and enter to edit it.

    4. look at the browser address bar and note down the ID (as shown on this image)

    https://monosnap.com/file/vv03r7qYkICaYpjXwglw6d9goGllTZ

    5. then go to “Hustle -> Dashboard” Page

    6. you’ll see an URL in browser address bar; do not remove or change it but just add this to it, at the end, no spaces;

    &run-migration=XXX

    but replace XXX with the ID that you got in step 4 above.

    7. then hit “enter” to load this page.

    And that’s it. If there’s any cache on site and/or server, clear it and then visit the page in question and check if the error is gone.

    Kind regards,
    Adam

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @gsp1992

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Warning: in_array() hustle-module-front.php on line 614’ is closed to new replies.