• Resolved Altisu

    (@altisu)


    Hello everyone!

    After I’ve changed my site server and upgraded it to the 7.2 php version I have a huge error-code suddenly appeared on the each page…

    Here it is:
    Warning: Use of undefined constant ‘script_loader_src’ - assumed '‘script_loader_src’' (this will throw an Error in a future version of PHP) in /home/virtwww/w_anobde-ru_333538c4/http/wp-content/themes/hive-lite-child/functions.php on line 84 Warning: Use of undefined constant ‘fjarrett_remove_wp_version_strings’ - assumed '‘fjarrett_remove_wp_version_strings’' (this will throw an Error in a future version of PHP) in /home/virtwww/w_anobde-ru_333538c4/http/wp-content/themes/hive-lite-child/functions.php on line 84 Warning: Use of undefined constant ‘style_loader_src’ - assumed '‘style_loader_src’' (this will throw an Error in a future version of PHP) in /home/virtwww/w_anobde-ru_333538c4/http/wp-content/themes/hive-lite-child/functions.php on line 85 Warning: Use of undefined constant ‘fjarrett_remove_wp_version_strings’ - assumed '‘fjarrett_remove_wp_version_strings’' (this will throw an Error in a future version of PHP) in /home/virtwww/w_anobde-ru_333538c4/http/wp-content/themes/hive-lite-child/functions.php on line 85 Warning: Use of undefined constant ‘the_generator’ - assumed '‘the_generator’' (this will throw an Error in a future version of PHP) in /home/virtwww/w_anobde-ru_333538c4/http/wp-content/themes/hive-lite-child/functions.php on line 91 Warning: Use of undefined constant ‘wpmudev_remove_version’ - assumed '‘wpmudev_remove_version’' (this will throw an Error in a future version of PHP) in /home/virtwww/w_anobde-ru_333538c4/http/wp-content/themes/hive-lite-child/functions.php on line 91

    There is no error when I use original (updated) Hive Lite theme, but i need the child one because it includes lots of my changes in the code…

    It would be great if anyone knows how to solve this problem!
    Thanks for your attention! (:

    • This topic was modified 6 years ago by Altisu.
    • This topic was modified 6 years ago by Altisu.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @altisu,

    To create child theme you can take help from the below listed knowledge base article-

    https://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/

    Kind regards,

    Manoj

    Thread Starter Altisu

    (@altisu)

    Hello, Manoj! Thanks for the link! (:

    The problem is already solved! I had incorrect codes in style.css and functions.php files in the main directory of the child theme.

    The proper code of the style.css (in child theme folder) looks like this:

    /*
    Theme Name: Hive Lite Child
    Theme URI: https://pixelgrade.com/themes/hive-lite/
    Author: Pixelgrade
    Author URI: https://pixelgrade.com
    Description: Дочерняя тема
    Template: hive-lite
    Version: 1.0.5
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: hive-lite-child
     */

    And proper code of the functions.php (child again) file:

    <?php
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
        
    function enqueue_parent_styles() {
       wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    ?>

    Hope this can help someone with the same problem and to create child theme correctly! Good luck, folks! (:

    • This reply was modified 5 years, 12 months ago by Altisu.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Theme PHP error’ is closed to new replies.