Forum Replies Created
-
AuthorPosts
-
HellenParticipant
** SOLVED ***
It turned out to be a problem in the child theme’s functions.php
HellenParticipantHi,
I have sent you the server error log
regards
HellenParticipantHi Support,
I have deactivated all plugins and checked again, still the same problem. I also cleared chache after all my actions.
regards
HellenParticipantI have the theme Attitude premium, so you could move this topic to Attitude Premium.
Also the website is https://www.haptotherapie-moerdijk.nl/wp-login.php.HellenParticipantHi support.
I paid subscripton and downloaded latest version (3.07). Installed this version. I still have the problem. when I set php to version 5.6 everything works oke. If I set the php version to 7.1, then I cannot load the backend page /wp-login.php.
I really need some help here because at the end of this month the php version will be 7.1.
regards
HellenParticipantThank you very much, this was the solution that I needed!!!
kind regards!
HellenParticipantHi,
I removed the IF-condition like you said, my functions.php now looks like this :
<?php // Exit if accessed directly if ( !defined('ABSPATH')) exit; /* Add custom functions below */ add_action( 'attitude_404_content', 'attitude_display_404_page_content', 10 ); function attitude_display_404_page_content() { ?> <div id="content"> <header class="entry-header"> <h1 class="entry-title"><?php _e( 'Error 404-Page NOT Found', 'attitude' ); ?></a></h1> </header> <div class="entry-content clearfix" > <p><?php _e( 'This is my own text.', 'attitude' ); ?></p> <h3><?php _e( 'lorem ipsum', 'attitude' ); ?></h3> <h3><?php _e( 'Please try the following instead:', 'attitude' ); ?></h3> <p><?php _e( 'Check for a mis-typed URL error, then press the refresh button on your browser.', 'attitude' ); ?></p> </div><!-- .entry-content --> </div><!-- #content --> <?php }
But i am still getting this error :
Fatal error: Cannot redeclare attitude_display_404_page_content() (previously declared in …/wp-content/themes/attitude-pro/library/structure/content-extensions.php on line 966.somehow i cannot redeclare the function???
HellenParticipantHi,
this is my complete functions.php in the child-theme directory:
<?php // Exit if accessed directly if ( !defined('ABSPATH')) exit; /* Add custom functions below */ if ( ! function_exists( 'attitude_display_404_page_content' ) ) : add_action( 'attitude_404_content', 'attitude_display_404_page_content', 10 ); function attitude_display_404_page_content() { ?> <div id="content"> <header class="entry-header"> <h1 class="entry-title"><?php _e( 'Error 404-Page NOT Found', 'attitude' ); ?></a></h1> </header> <div class="entry-content clearfix" > <p><?php _e( 'This is my own text.', 'attitude' ); ?></p> <h3><?php _e( 'lorem ipsum', 'attitude' ); ?></h3> <h3><?php _e( 'Please try the following instead:', 'attitude' ); ?></h3> <p><?php _e( 'Check for a mis-typed URL error, then press the refresh button on your browser.', 'attitude' ); ?></p> </div><!-- .entry-content --> </div><!-- #content --> <?php } endif;
I am still getting the same error.
-
AuthorPosts