興育 黃
Forum Replies Created
-
Fatal error on line 119, showed that
trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE );Anybody could help me to fix it?
Please!Forum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpected@tapan Kumer Das
Thank you for your reply
I have tried it
but the page still shows that
Parse error: syntax error, unexpected ‘<‘ in /home2/ifreedom/public_html/wp-content/themes/Avada/functions.php on line 1558Forum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpectedHi
@tapan Kumer Das
Thank you for your reply
I will give it a try!
Thanks a millionForum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpectedBill Member
Thank you for your help and patient reply
Thanks a million
I will take your adviceForum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpectedHe WPyogi
Thank you for your reply!Forum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpectedHello Bill member
You are really kind
I do hope to receive your reply!Forum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpected1632~1636 line
function avada_comment( $comment, $args, $depth ) { Avada_Template::comment_template( $comment, $args, $depth ); } function avada_set_post_filters( $query ) {Forum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpectedHi Bill Member
Thank you for your reply soon
I follow your order
However the page shows that
“Fatal error: Cannot redeclare avada_comment() (previously declared in /home2/ifreedom/public_html/wp-content/themes/Avada/functions.php:77) in /home2/ifreedom/public_html/wp-content/themes/Avada/functions.php on line 1634”on line 1634 shows }
//define('WOOCOMMERCE_USE_CSS', false); // Content Width if( ! isset( $content_width ) ) { $content_width = '669'; } // How comments are displayed function avada_comment( $comment, $args, $depth ) { Avada_Template::comment_template( $comment, $args, $depth ); } function avada_set_post_filters( $query ) { global $smof_data; if( ( is_tax( 'portfolio_category' ) || is_tax( 'portfolio_skills' ) || is_tax( 'portfolio_tags') ) && $query->is_main_query() ) { $query->set( 'posts_per_page', $smof_data['portfolio_items'] ); } return $query; } add_filter('pre_get_posts', 'avada_set_post_filters'); add_filter('wp_get_attachment_link', 'avada_pretty'); function avada_pretty($content) { $content = preg_replace("/<a/","<a rel=\"prettyPhoto[postimages]\"",$content,1); return $content; }Forum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpectedBill Member
Thank you for your reply and your sharing.
I got it!
I post the new php here
Hope you can help me!Forum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpectedHi Bill Member:
thank you for your reply
I really need your help
the page shows
Parse error: syntax error, unexpected ‘<‘ in /home2/public_html/wp-content/themes/Avada/functions.php on line 1558
Could you help me?/** * Auto Updater Code */ function avada_auto_updater() { $smof_data = get_option( 'Avada_options' ); if( isset( $smof_data['tf_username'] ) && !empty( $smof_data['tf_username'] ) && isset( $smof_data['tf_api'] ) && !empty( $smof_data['tf_api'] ) && isset( $smof_data['tf_purchase_code'] ) && !empty( $smof_data['tf_purchase_code'] ) ) { $theme_info = wp_get_theme(); if( $theme_info->parent_theme ) { $template_dir = basename( get_template_directory() ); $theme_info = wp_get_theme( $template_dir ); } $name = $theme_info->get( 'Name' ); $slug = $theme_info->get_template(); require_once( get_template_directory() . '/framework/class-updater.php' ); $theme_update = new AvadaThemeUpdater( 'http://updates.theme-fusion.com/avada-theme.php', $name, $slug ); } } add_action( 'admin_init', 'avada_auto_updater' ); /** * Layerslider API */ function avada_layerslider_ready() { if( class_exists('LS_Sources') ) { LS_Sources::addSkins( get_template_directory().'/includes/ls-skins' ); } if( defined( 'LS_PLUGIN_BASE' ) ) { remove_action( 'after_plugin_row_' . LS_PLUGIN_BASE, 'layerslider_plugins_purchase_notice', 10, 3 ); } } add_action( 'layerslider_ready', 'avada_layerslider_ready' ); <php? /* Options Framework */ require_once( get_template_directory() . '/framework/admin/index.php' ); /** * The main theme class * Any additional assets, objects etc should be included and instantiated from here. * This is a work in progress and part of a larger rewrite that will happen over time. */ class Avada { public $init; public $social_icons; public $sidebars; /** * The class constructor */ public function __construct() { global $smof_data; // Avada initialization class require_once( get_template_directory() . '/includes/class-avada-init.php' ); // Avada initialization class require_once( get_template_directory() . '/includes/class-avada-sidebars.php' ); // Avada template class require_once( get_template_directory() . '/includes/class-avada-template.php' ); // Social Icons require_once( get_template_directory() . '/framework/class-social-icons.php' ); // Initialize the mega menu framework if ( ! $smof_data['disable_megamenu'] ) { require_once( get_template_directory() . '/framework/plugins/megamenu/mega-menu-framework.php' ); }The page shows
Forum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpectedThe backup I used is the database, which is backed up by WP-DB
Does it work for my “functions” to replace it with a new one?Forum: Fixing WordPress
In reply to: Please Help me How to fix "Parse error: syntax error, unexpectedHi Bill Member thank you for your suggestion.
I am confused about what you said.
I think the problem is my
I show you the cod
Hope you can help me[corrupted code removed – use the code buttons]
The problem is “Parse error: syntax error, unexpected ‘<‘ in /home2/public_html/wp-content/themes/Avada/functions.php on line 1558”
Do you know how to fix it?