• Resolved username_pg

    (@username_pg)


    Hi,

    I just updated the theme and now my website stopped working. It says:
    Parse error: syntax error, unexpected ‘,’ in /home/aminut5/public_html/wp-content/themes/customizr/core/init-base.php on line 1146

    When I opened above file in cpanel, here is the code for lines 1146-1148

    foreach ( (‘after_nimble_header’ , ‘nimble_template_before_content_sections’ , ‘before_nimble_footer’) as $nimble_hook ) {
    add_action( $nimble_hook, ‘czr_fn_render_locations_when_using_nimble_templates’ );
    }

    Please guide me what to do.

    thank you!!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter username_pg

    (@username_pg)

    This is my website address: https://www.minutewonder.com

    Thread Starter username_pg

    (@username_pg)

    I just read in your notes: Deactivate your child theme if you are using one.

    I didn’t know we are supposed to deactivate child theme (I never deactivated it before) and now I cannot login into dashboard or access my website (www.minutewonder.com).

    Please let me know how to fix this.

    Thank You!!

    Deb Shadovitz

    (@debshadovitz)

    @username_pg Can you please share what notes you read? A URL to them would be great.
    Hoping…

    Theme Author presscustomizr

    (@nikeo)

    Hi @username_pg we have identified that your problem could be related to the version of PHP on your server.
    A patch is on the way. In the meantime, I would recommend asking your web host update PHP to version 7.

    Thread Starter username_pg

    (@username_pg)

    Hi @nikeo,

    Thank you for your response.
    I updated PHP, it shows
    Current: PHP 7.3
    System Default: PHP 7.2

    Cleared Cache on my mac (though there is nothing new in trash bin).

    On reloading website, I still get same error:
    Parse error: syntax error, unexpected ‘,’ in /home/aminut5/public_html/wp-content/themes/customizr/core/init-base.php on line 1146

    I will wait for your further instructions.
    Thank you!!

    Thread Starter username_pg

    (@username_pg)

    Theme Author presscustomizr

    (@nikeo)

    @username_pg do you confirm that you have updated your site to the latest version of the theme ?
    If needed here’s how to update your WordPress theme via ftp.

    Thread Starter username_pg

    (@username_pg)

    Yes, I updated the theme yesterday using my dashboard and since then I’m not able to log into my dashboard or website.

    I have never updated the website/theme using FTP as I am not a computer programmer. Can I go back to previous version of theme in some easy steps or provide me with an easy solution other that FTP please?

    To troubleshoot, FAQ pages suggested to change the curly parentheses {} that were originally present in this code on line 1146 so I changed them to round ones (), but it didn’t solve the problem either.

    foreach ( (‘after_nimble_header’ , ‘nimble_template_before_content_sections’ , ‘before_nimble_footer’) as $nimble_hook)

    Thread Starter username_pg

    (@username_pg)

    I just read at https://presscustomizr.com/customizr/

    that I need to install the nimble builder plugin before using Customizr theme…but I’ve been using Customizr theme for so many years now, never had any issues before with update.

    Is this a new requirement?

    Theme Author presscustomizr

    (@nikeo)

    The Nimble Builder is recommended but not required for Customizr.

    About FTP, ok I understand.

    Then if you prefer changing the code in the core/init-base.php file directly, you can simply copy and paste the relevant part here : https://themes.trac.www.ads-software.com/browser/customizr/4.1.30/core/init-base.php#L1146

    Thread Starter username_pg

    (@username_pg)

    OMG just one word “array” was missing from the code and now my website is back up. Thank you Nicolas! ??

    Going forward:
    1. I’ve updated Customizr theme (version: 4.1.30) and
    2. I deactivated child theme but then some settings were off so I had to activate it again
    2. Installed Nimble page builder plugin

    I still see the side bar is not showing properly..this is the message I am getting on home page (if you scroll down) link: https://www.minutewonder.com

    Warning: preg_match(): Compilation failed: invalid range in character class at offset 11 in /home/aminut5/public_html/wp-content/plugins/wysija-newsletters/helpers/render_engine.php on line 526

    Fatal error:
    Uncaught Exception: Template ‘templates/form/web/widgets/#type.html’ not found ! in /home/aminut5/public_html/wp-content/plugins/wysija-newsletters/helpers/render_engine.php:723 Stack trace: #0 /home/aminut5/public_html/wp-content/plugins/wysija-newsletters/helpers/render_engine.php(454): WYSIJA_help_render_engine->_loadTemplate(‘templates/form/…’) #1 /home/aminut5/public_html/wp-content/plugins/wysija-newsletters/helpers/render_engine.php(169): WYSIJA_help_render_engine->_parse(‘\n{include file=…’) #2 /home/aminut5/public_html/wp-content/plugins/wysija-newsletters/helpers/form_engine.php(756): WYSIJA_help_render_engine->render(Array, ‘templates/form/…’) #3 /home/aminut5/public_html/wp-content/plugins/wysija-newsletters/helpers/form_engine.php(638): WYSIJA_help_form_engine->render_web_body() #4 /home/aminut5/public_html/wp-content/plugins/wysija-newsletters/views/front/widget_nl.php(160): WYSIJA_help_form_engine->render_web() #5 /home/aminut5/public_html/wp-content/plugins/wysija-newsletters/widgets/wys in /home/aminut5/public_html/wp-content/plugins/wysija-newsletters/helpers/render_engine.php on line 723

    Thank you for your timely help and guidance!

    Hi @username_pg
    the error above is referring to the wysija-newsletters plugin.
    You might want to inform the plugin author about that :).

    Hope this helps.

    Theme Author presscustomizr

    (@nikeo)

    Hi @username_pg yes, as @d4z_c0nf said, this other problem is not related to the theme.
    I’m setting your initial problem to resolved.
    Thanks

    Thread Starter username_pg

    (@username_pg)

    Got it, thank you @d4z_c0nf and @nikeo!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Updated and now my website is not working’ is closed to new replies.