Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1117060
    Patrick
    Guest

    Hi. I had a site set up ad all was good until about a week ago. I read a few blogs on what may have gone wrong and realised I needed to update. I downloaded the latest version of Enfold and replaced the old by ftp.
    I now have this error now on the site: Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /home/sadccom/public_html/wp-content/themes/enfold/includes/admin/register-admin-options.php on line 3735
    After googling it I figured I may now need another license to use as I had previously used the same enfold on another site as well. I wasn’t aware I had to have a new license.
    I now have no idea where to go from here – how to generate a license file/ token or where to place it.
    Any advice would be greatly appreciated.

    #1117274

    Hey Patrick,

    Could you try to completely delete the theme folder, then upload the new version again after that please? I don’t think you should have to buy another license if the current one is valid.

    Best regards,
    Rikard

    #1117290
    Patrick
    Guest

    Hey Rikard. Thanks for getting back to me so quickly. I was using enfold on 2 different sites which is why I thought sadc.com.au failed. Am I wrong in thinking I need a license for each site.
    I will delete and re upload and let you know how it goes.
    Thanks again for your assistance.

    Patrick

    #1117322

    Hi Patrick,

    If you have 2 separate sites on 2 different domain then yes, you should need 2 license. But I don’t think that is why your site is have the problem it’s having. Did you try what I suggested? Please make sure that you have backups of the site before doing this.

    Best regards,
    Rikard

    #1117464

    Hi Rikard
    I did what you suggested and deleted the files and then ftp new files in its place for the Enfold theme.
    I now get the following error:
    Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /home/sadccom/public_html/wp-content/themes/enfold/includes/admin/register-admin-options.php on line 2955

    which still refers to registering and admin options.
    I appreciate your time and advice with this

    Patrick

    #1117475

    Hi Rikard
    After reading a few other blogs I went to a new download and extracted out the register-admin-options.php file.
    I then deleted the one on the server and replaced it with the new one:
    I now get this :
    Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /home/sadccom/public_html/wp-content/themes/enfold/includes/admin/register-admin-options.php on line 2183

    #1117482

    Hi Rikard
    I decided to give it another try and went and downloaded another copy of the software
    Extracted the file and I now get this error:
    Parse error: syntax error, unexpected end of file, expecting ‘)’ in /home/sadccom/public_html/wp-content/themes/enfold/includes/admin/register-admin-options.php on line 4071

    But when I view the code it looks OK to me ( not that that means much) so I have a copy of it below.
    This is becoming very frustrating for me
    Appreciate your help in figuring it out.

    $avia_elements[] = array(
    “slug” => “demo”,
    “name” => __(“Import: Church Demo”, ‘avia_framework’),
    “desc” => “<p>{$what_get} {$online_demo}</p>”
    .”<h4 class=’av-before-plugins’>”.__(“Required Plugins:”, ‘avia_framework’).”</h4>


    .”<h4 class=’av-before-plugins’>”.__(“Demo Images included:”, ‘avia_framework’).”</h4>


      .”

    • “.__(“All”, ‘avia_framework’).”

    • .”

    “,

    ‘files’ => “/includes/admin/demo_files/church”,
    “id” => “import”,
    “type” => “import”,
    “exists” => array(“Tribe__Events__Main”,__(“The Events Calendar Plugin is currently not active. Please install and activate it, then reload this page in order to be able to import this demo”, ‘avia_framework’)),
    “image” => “includes/admin/demo_files/demo_images/church.jpg”
    );

    $avia_elements[] = array(

    #1117483

    These are lines 4065 to 4076 with line 4071 which the error refers to starts with .__

    $avia_elements[] = array(
    “slug” => “demo”,
    “name” => __(“Import: Church Demo”, ‘avia_framework’),
    “desc” => “<p>{$what_get} {$online_demo}</p>”
    .”<h4 class=’av-before-plugins’>”.__(“Required Plugins:”, ‘avia_framework’).”</h4>


    .”<h4 class=’av-before-plugins’>”.__(“Demo Images included:”, ‘avia_framework’).”</h4>


      .”

    • “.__(“All”, ‘avia_framework’).”

    • .”

    “,

    #1118517

    Hi Yellowdot,

    Which version of php are you running?

    Best regards,
    Victoria

    #1118635
    Patrick
    Guest

    Hi Victoria
    The web server has PHP version 7.2.7

    Patrick

    #1118670
    Patrick
    Guest

    After placing a ticket with 123ehost. They informed me I am using 7.0 version of PHP

    #1118978

    Hi,

    Thank you for the update.

    Try to replace line 4065 to 4084 with the following code. Or just get a fresh copy of the file then override the old one.

    $avia_elements[] =	array(
    					"slug"	=> "demo",
    					"name" 	=> __("Import: Church Demo", 'avia_framework'),
    					"desc" 	=> 	 "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-church/' target='_blank'>{$online_demo}</a></strong></p>"
    								."<h4 class='av-before-plugins'>".__("Required Plugins:", 'avia_framework')."</h4><ul>"
    								."<li><a href='https://wordpress.org/plugins/the-events-calendar/' target='_blank'>The Events Calendar</a> "
    								.__("(needs to be active to install the demo)", 'avia_framework')."</li>"
    								."<li>or <a href='http://mbsy.co/6cr37' target='_blank'>The Events Calendar PRO</a></li>"
    								."</ul>"
    								."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
    								."<li>".__("All", 'avia_framework')."</li>"
    								."</ul>",
    								
    					'files' => "/includes/admin/demo_files/church",
    					"id" 	=> "import",
    					"type" 	=> "import",
    					"exists" => array("Tribe__Events__Main",__("The Events Calendar Plugin is currently not active. Please install and activate it, then reload this page in order to be able to import this demo", 'avia_framework')),
    					"image"	=> "includes/admin/demo_files/demo_images/church.jpg"
    					);
    					

    And please don’t forget to register an account and login.

    // https://kriesi.at/support/register/

    Best regards,
    Ismael

    #1119144

    Hi Ismale
    I replaced the code you provided and I now get this error:

    Fatal error: Uncaught Error: Call to undefined function apply_filters_deprecated() in /home/sadccom/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php:2595 Stack trace: #0 /home/sadccom/public_html/wp-includes/class-wp-widget-factory.php(43): avia_instagram_widget->__construct() #1 /home/sadccom/public_html/wp-includes/widgets.php(113): WP_Widget_Factory->register(‘avia_instagram_…’) #2 /home/sadccom/public_html/wp-content/themes/enfold/functions.php(668): register_widget(‘avia_instagram_…’) #3 /home/sadccom/public_html/wp-content/themes/enfold/functions.php(674): avia_register_avia_widgets() #4 /home/sadccom/public_html/wp-settings.php(368): include(‘/home/sadccom/p…’) #5 /home/sadccom/public_html/wp-config.php(103): require_once(‘/home/sadccom/p…’) #6 /home/sadccom/public_html/wp-load.php(37): require_once(‘/home/sadccom/p…’) #7 /home/sadccom/public_html/wp-blog-header.php(12): require_once(‘/home/sadccom/p…’) #8 /home/sadccom/public_html/index.php(17): require(‘/home/sadccom/p… in /home/sadccom/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 2595

    I am not sure what is wrong as I have already replaced the entire enfold folder, and I am now going to attempt to replace the entire includes folder which is inside it, but I don’t see what the difference will be.
    I am also going to talk to the hosting company as I am going to see if I can get wordpress reinstalled. This has been going on for 2 weeks and no one seems to be able solve it. Does it make sense that If I have replaced the entire Enfold Folder that it must be something else outside that.
    I really appreciate your experience and knowledge with this.
    I will wait until I get your response before I do anything.

    Thanks

    Patrick

    #1119820

    Hi,

    What is the current version of your WordPress installation? The function apply_filters_deprecated was introduced on version 4.6, so you have to make sure that the site is running on the latest version of WordPress, which is 5.2.1. And yes, you should remove the entire enfold folder before replacing it with the latest version.

    Best regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.