- This topic has 3 replies, 2 voices, and was last updated 7 years, 5 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Recently I just reinstalled my wordpress, while importing the genesis theme over, it shows these error on my frontpage. Anyone? Thanks!
Notice: Constant CHILD_THEME_NAME already defined in /home/xtinaweb/public_html/wp-content/themes/diamonds/lib/init.php on line 46
Notice: Constant CHILD_THEME_URL already defined in /home/xtinaweb/public_html/wp-content/themes/diamonds/lib/init.php on line 49http://www.xtina-web.com
Thanks for getting back to me! I removed these lines in function.php
//* Child theme (do not remove) define( 'CHILD_THEME_NAME', 'Diamonds' ); define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' ); define( 'CHILD_THEME_VERSION', '2.1.2' ); Somehow, im getting error after updating post.
Notice: genesis_save_custom_fields was called with an argument that is deprecated since version 2.0.0 with no alternative available. in /home/xtinaweb/public_html/wp-includes/functions.php on line 3510 Warning: Cannot modify header information - headers already sent by (output started at /home/xtinaweb/public_html/wp-includes/functions.php:3510) in /home/xtinaweb/public_html/wp-admin/post.php on line 237 Warning: Cannot modify header information - headers already sent by (output started at /home/xtinaweb/public_html/wp-includes/functions.php:3510) in /home/xtinaweb/public_html/wp-includes/pluggable.php on line 1196
There's a reason the comment says don't remove these lines. What's on line 3510 of functions.php? The genesis_save_custom_fields() function is used to save post meta / custom field data for a post or page. It is used as follows:
$mixed = genesis_save_custom_fields( $data, $nonce_action, $nonce_name, $post, $deprecated );
Your code must be passing the fifth parameter, which has been deprecated since version 2.0.0 of the framework.
Here's a link to an article explaining nonce: https://www.tipsandtricks-hq.com/introduction-to-wordpress-nonces-5357
© 2023 WPEngine, Inc.