bourneblogger Posted August 1, 2021 Share Posted August 1, 2021 I recently updated wordpress to 5.8 and PHP to v8. Suddenly, when I want to add, change, or edit pictures in the Fusion theme builder, I get redirected to a 404 with this error: Notice: Use of undefined constant php - assumed 'php' in /home/c0gf5875uk7l/public_html/wp-content/themes/Avada/404.php on line 23 Here is the PHP for the 404.php file this error is calling out: <?php get_header(); ?> <div id="content" class="full-width"> <div id="post-404page"> <div class="post-content"> <div class="fusion-title title"> <h2 class="title-heading-left"><?php echo __('Oops, This Page Could Not Be Found!', 'Avada'); ?></h2><div class="title-sep-container"><div class="title-sep sep-double"></div></div> </div> <div class="fusion-clearfix"></div> <div class="error_page"> <div class="fusion-one-third one_third fusion-column spacing-yes"> <div class="error-message">404</div> </div> <?php/*<div class="fusion-one-third one_third fusion-column spacing-yes useful_links"> <h3><?php echo __('Here are some useful links:', 'Avada'); ?></h3> <?php if( $smof_data['checklist_circle'] ) { $circle_class = 'circle-yes'; } else { $circle_class = 'circle-no'; } wp_nav_menu(array('theme_location' => '404_pages', 'depth' => 1, 'container' => false, 'menu_id' => 'checklist-1', 'menu_class' => 'error-menu list-icon list-icon-arrow ' . $circle_class )); ?> </div>*/?> <div class="fusion-one-third one_third fusion-column spacing-yes last"> <h3><?php echo __('Search Our Website', 'Avada'); ?></a></h3> <p><?php echo __('Can\'t find what you need? Take a moment and do a search below!', 'Avada'); ?></p> <div class="search-page-search-form"> <form class="searchform seach-form" role="search" method="get" action="<?php echo home_url( '/' ); ?>"> <div class="search-table"> <div class="search-field"> <input type="text" value="" name="s" class="s" placeholder="<?php _e( 'Search ...', 'Avada' ); ?>"/> </div> <div class="search-button"> <input type="submit" class="searchsubmit" value="" /> </div> </div> </form> </div> </div> </div> </div> </div> </div> <?php get_footer(); ?> Anyone have a clue as to why this is happening? Quote Link to comment Share on other sites More sharing options...
requinix Posted August 2, 2021 Share Posted August 2, 2021 Which line is 23? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.