Support » Fixing WordPress » Erro functions.php on line 956

  • Resolved devbra

    (@devbra)


    Baixei um tema, Apartment Real Estate, o site até funciona porém está com esse erro a cima no site

    Warning: A non-numeric value encountered in /opt/lampp/htdocs/wordpress/wp-content/themes/download/apartment-wp/functions.php on line 956
    indo no arquivo parece estar tudo correto, se muda algo estou num mac

    function apartment_wp_enqueue_inline_scripts() { global $apartment_options; $script = ‘ conditionizr.config( { assets: “‘ . get_template_directory_uri() . ‘”, tests: { } } );
    var templateDir = “‘ . esc_url( get_template_directory_uri() ) . ‘”;
    LINE 956 var emptyPin = “‘ . (( apartment_wp_framework_options( ‘apartment_wp_emptypin’ ) ) ? esc_url( apartment_wp_framework_options( ‘apartment_wp_emptypin’, ‘url’ ) ) : esc_url( get_template_directory_uri() ) + ‘/images/pin-empty.png’ ) . ‘ “;
    ‘;
    ____________________________

    I downloaded a theme, Apartment Real Estate, the site is ok but there is an error at top the site
    Warning: A non-numeric value encountered in /opt/lampp/htdocs/wordpress/wp-content/themes/download/apartment-wp/functions.php on line 956
    at the file seem everything ok, if this change something i’m working in mac

    function apartment_wp_enqueue_inline_scripts() { global $apartment_options; $script = ‘ conditionizr.config( { assets: “‘ . get_template_directory_uri() . ‘”, tests: { } } );
    var templateDir = “‘ . esc_url( get_template_directory_uri() ) . ‘”;
    LINE 956 var emptyPin = “‘ . (( apartment_wp_framework_options( ‘apartment_wp_emptypin’ ) ) ? esc_url( apartment_wp_framework_options( ‘apartment_wp_emptypin’, ‘url’ ) ) : esc_url( get_template_directory_uri() ) + ‘/images/pin-empty.png’ ) . ‘ “;
    ‘;

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    Your download theme seems to be the issue.

    Repair/replace /wp-content/themes/download/apartment-wp/functions.php file.

    If you need immediate access to your dashboard, access your server via FTP/ SFTP , or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding "-old" to the end of the folder name. Alternately, you can remove other themes except the default theme (Twenty Seventeen, etc.). That will force your site to use it.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator

    As you use a commercial theme and need support, please use their official support channel. We feel they are best equipped to support their products.

    https://themeforest.net/item/apartment-wp-real-estate-responsive-wordpress-theme-for-agents-portals-single-property-sites/16265143/support

    Commercial products are not supported in these forums. .

    Thread Starter devbra

    (@devbra)

    i understand and im talking with them, but time to they answer is too much, because the time zone… and i need resolve this soon, thanks for the answers and tomorrow i will do what t-p said

    Thread Starter devbra

    (@devbra)

    i reboot wp and the problem persist, but now when i will “connection information” happens:

    Unable to locate WordPress content directory (wp-content).

    Plugin not activated. A higher version of Apartment WP Paypal is needed for this theme. Please update the plugin.

    while i try install the same plugin

    Thread Starter devbra

    (@devbra)

    pra solucionar esse problema basta vc liberar as permissões de pastas do seu pc, no caso clicando em cima delas com o botao direito > obter informações > Compartilhamento e Permissões > cadeado > e mudar os privilegios para Leitura e Gravação

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Erro functions.php on line 956’ is closed to new replies.