• Resolved jaspervdv

    (@jaspervdv)


    Hello,

    I got the following warning when I visit my home page on mobile: Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘child_enqueue_styles’ not found or invalid function name in /home/customer/www/drone-optiek.nl/public_html/wp-includes/class-wp-hook.php on line 307.

    I have no experience with the theme editor and I don’t use it. Still this error appeared. I recently re-installed the Astra Child Theme and updated some plugins. I deactivated all the plugins but that did nothing.

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

Viewing 15 replies - 16 through 30 (of 61 total)
  • Thread Starter jaspervdv

    (@jaspervdv)

    I am now tryig to get access to ssh with my hosting. I follow these steps: https://www.siteground.com/kb/access-site-ssh-connection/

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @benniledl Moderator note: “send… to me”.

    Please do not ask for off-forum contact. All replies should be kept in the forums. Thanks.

    @sterndata sorry I meant “send to me” as “post in forum”

    @jaspervdv please try to deactivate your theme by renaming your theme’s folder in /wp-content/themes
    tell me if the issue is still there then, note that the appearance of your site will look entirely different while the theme is deactivated, you can just reactivate it by renaming it to the original name again

    Thread Starter jaspervdv

    (@jaspervdv)

    I tried to get access to ssh, but I got stuck at the end. I renamed the name of my theme (in my case Astra) and saw the following error now also on desktop:

    Warning: Use of undefined constant ‘WP_DEBUG_DISPLAY’ – assumed ‘‘WP_DEBUG_DISPLAY’’ (this will throw an Error in a future version of PHP) in /home/customer/www/drone-optiek.nl/public_html/wp-config.php on line 83

    Warning: Use of undefined constant ‘WP_DEBUG_LOG’ – assumed ‘‘WP_DEBUG_LOG’’ (this will throw an Error in a future version of PHP) in /home/customer/www/drone-optiek.nl/public_html/wp-config.php on line 84
    The theme directory “astra” does not exist.

    I removed the debug code you send me and gave my theme the right name again. Now all the errors on desktop are gone.

    Unfortunately, the error we are talking about is still visible on mobile. When I visit my homepage on mobile while logged in, I see no error.

    try to rename the folder again please without the code that i sent

    Thread Starter jaspervdv

    (@jaspervdv)

    Renamed it and got this while logged into wordpress: The theme directory “astra” does not exist.
    A device that is nog logged in still shows the original error.

    Probably cache on the device that was not logged in, can you deactivate it again, tell me and then I will have a look at it then you can activate it again

    Thread Starter jaspervdv

    (@jaspervdv)

    Alright I now deactivated the theme.

    thanks you can activate it again, the appearance of the site didn’t change, do you have multiple themes active? you can see that in the wordpress dashboard

    Thread Starter jaspervdv

    (@jaspervdv)

    I installed the Astra theme and the Astra Child theme. The Astra theme is activated. Altough I didnt activate the child theme, I can select it in the theme editor in wordpress.

    can you try activating the child theme?

    Thread Starter jaspervdv

    (@jaspervdv)

    Its now activated

    • This reply was modified 3 years, 7 months ago by jaspervdv.

    nice problem fixed?

    Thread Starter jaspervdv

    (@jaspervdv)

    Its not fixed. But it may disappear later on. What I dont understand is that I dont see an error when I am logged into wordpress

    • This reply was modified 3 years, 7 months ago by jaspervdv.
Viewing 15 replies - 16 through 30 (of 61 total)

The topic ‘warning: call_user_func_array() expects parameter 1 to be a valid callback, func’ is closed to new replies.