• Resolved dark4real

    (@dark4real)


    I just installed the new version, to try out your plugin again… I Still get error like i did last time!

    Warning: Invalid argument supplied for foreach() in /var/www/tjekit.com/public_html/wp-content/plugins/ig-pagebuilder/core/helper/shortcode.php on line 183

    Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/var/www/tjekit.com-public_html-wp-content-plugins-ig-shortcodes-free-shortcodes-widget-assets-column.php) is not within the allowed path(s): (/var/www/tjekit.com/:/var/www/tmp/) in /var/www/tjekit.com/public_html/wp-content/plugins/ig-pagebuilder/core/loader.php on line 64

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/tjekit.com/public_html/wp-content/plugins/ig-pagebuilder/core/helper/shortcode.php:183) in /var/www/tjekit.com/public_html/wp-content/plugins/ig-pagebuilder/core/utils/plugin.php on line 60

    same error i got last time there is something not right in line 64! loader.php on line 64
    The error show is the top of the page and dashbord…
    What can i do to fix it?

    https://www.ads-software.com/plugins/ig-pagebuilder/

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

    (@innogears)

    Hello,
    To bypass the warnings, you can follow under instruction:

    – Edit this file: /var/www/tjekit.com/public_html/wp-content/plugins/ig-pagebuilder/core/helper/shortcode.php, go to line 183, replace this code block:

    foreach ( glob( $dir . '/*.php' ) as $file ) {
    	$p = pathinfo( $file );
    	$element = str_replace( '-', '_', $p['filename'] );
    	$shortcode_name = 'ig_' . $append . $element;
    	$shortcodes[$shortcode_name] = array( 'type' => $type, 'provider' => $provider );
    	$Ig_Sc_By_Providers[$provider['dir']][] = $shortcode_name;
    }

    …by this:

    if ( count( glob( $dir . '/*.php' ) ) > 0 ) {
    	foreach ( glob( $dir . '/*.php' ) as $file ) {
    		$p = pathinfo( $file );
    		$element = str_replace( '-', '_', $p['filename'] );
    		$shortcode_name = 'ig_' . $append . $element;
    		$shortcodes[$shortcode_name] = array( 'type' => $type, 'provider' => $provider );
    		$Ig_Sc_By_Providers[$provider['dir']][] = $shortcode_name;
    	}
    }

    – Then, edit this file: /var/www/tjekit.com/public_html/wp-content/plugins/ig-pagebuilder/core/loader.php, find this string (line 64, 70):

    is_file

    … and replace them by

    @is_file

    After saving above files, the warnings might gone.

    Thread Starter dark4real

    (@dark4real)

    i did what you describe now i get this error when i go to my site url

    Parse error: syntax error, unexpected T_FUNCTION, expecting T_PAAMAYIM_NEKUDOTAYIM in /var/www/tjekit.com/public_html/wp-content/plugins/ig-pagebuilder/core/helper/shortcode.php on line 203

    you can look your self https://www.tjekit.com

    Thread Starter dark4real

    (@dark4real)

    had to remove the plugin again…

    Plugin Author InnoGears

    (@innogears)

    Hi, sorry that you can’t use it :(, would be the best if you can contact to your host provider to turn the PHP warnings off.

    It seems you added an unexpected “}”. So, if you still want to make a retry, please replace the whole ….helper/shortcode.php content by under:

    [ please use pastebin.com for that amount of code ]

    Thread Starter dark4real

    (@dark4real)

    is it not possible you can fix it in the plugin… so it dosent comes up with that warning?

    Thread Starter dark4real

    (@dark4real)

    so the correct replacement code is?

    Plugin Author InnoGears

    (@innogears)

    Hello,

    Sorry, the pasted code was replaced by WordPress forum.

    Please replace the whole content of this file: var/www/tjekit.com/public_html/wp-content/plugins/ig-pagebuilder/core/helper/shortcode.php

    by the content which got from here:

    https://plugins.svn.www.ads-software.com/ig-pagebuilder/trunk/core/helper/shortcode.php

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Invalid argument & Warning: is_file() [function.is-file]:’ is closed to new replies.