- This topic has 20 replies, 2 voices, and was last updated 3 years, 6 months ago by Skandha.
-
AuthorPosts
-
May 28, 2021 at 7:41 am #283234HeinzParticipant
Hello
I have received a new functions.php from you so that the images in my slider are arranged randomly. WordPress now reports that an error has occurred with this file. However, everything still works on my homepage. Is there a new version of this file? Here is the error message from WordPress:Bug details
===============
An error of the type E_COMPILE_ERROR was caused in line 759 of the file /home/httpd/vhosts/villa-fuente.ch/vah.ch/wp-content/themes/catch-fullscreen-pro/functions.php. Error message: require (): Failed opening required ‘/home/httpd/vhosts/villa-fuente.ch/vah.ch/wp-content/themes/catch-fullscreen-pro/inc/featured-slider.php’ (include_path = ‘.: / usr / share / pear: / usr / share / php’)Many thanks for the help.
With kind regards
HeinzMay 29, 2021 at 2:43 am #283289SkandhaParticipant@henebe: Hello Heinz,
Can you please clarify when you get this error? As I tried looking into your site and didn’t find the error message.Kind Regards,
SkandhaMay 30, 2021 at 3:26 am #283349HeinzParticipantHello
This was sent automatically by WordPress. Here the mail is translated.
Hello!
Since WordPress 5.2 there is a built-in function that recognizes when a plugin or theme causes a fatal error on your website and notifies you with this automated e-mail.
In this case, WordPress caught a bug in your “Catch Fullscreen Pro” theme.
First, visit your website (https://vah.ch/) and check for any visible problems. Next, visit the page on which the error occurred (https://vah.ch/wp-admin/admin-ajax.php) and check whether there are any visible problems.
Please contact your hosting company for assistance in further investigating this issue.
If your website appears to be buggy and you can no longer access your dashboard as usual, WordPress now has a special “recovery mode”. That way, you can securely log into your dashboard and conduct further research.
To protect your website, this link will expire in 1 day. But don’t worry: a new link will be emailed to you if the error occurs again after the deadline.
When seeking help with this problem, you may be asked for some of the following information:
WordPress version 5.7.2
Current theme: Catch Fullscreen Pro (version 3.5.4) Current plugin: (version) PHP version 7.4.18Bug details
===============
An error of the type E_COMPILE_ERROR was caused in line 759 of the file /home/httpd/vhosts/villa-fuente.ch/vah.ch/wp-content/themes/catch-fullscreen-pro/functions.php. Error message: require (): Failed opening required ‘/home/httpd/vhosts/villa-fuente.ch/vah.ch/wp-content/themes/catch-fullscreen-pro/inc/featured-slider.php’ (include_path = ‘.: / usr / share / pear: / usr / share / php’)May 31, 2021 at 10:06 am #283451SkandhaParticipant@henebe: Hello Heinz,
Can you try reinstalling the theme? This should solve the issue.Let me know if the error persists!
Kind Regards,
SkandhaJune 1, 2021 at 5:44 am #283518HeinzParticipantHello Skandha
Then the functions.php will still not work. I copied this into the “inc” directory when I submitted the template. At that time you had set up a sub-template for me because functions.php never ran. I then found out when I copied this directly into the template that it would then work.
Thank you for your help.
regards
HenizJune 1, 2021 at 10:08 am #283527June 2, 2021 at 4:59 am #283620HeinzParticipantHello Skandha
I still have one correction. It works with all browsers. Simply the question of the error message and the installation environment is still open.
regards
HeinzJune 2, 2021 at 8:15 am #283615HeinzParticipantHello Skandha
It’s an error message from WordPress. I don’t know when it will come back. It is so that I replaced the functions.php received from you directly with the active theme. Since as written, the sub-template does not work. I also noticed that the random display of the image order only works in Microsoft Edge. Is there a newer version of functions.php? It would be better if this function could be activated directly in the template.
regards
HeinzJune 2, 2021 at 8:22 am #283641SkandhaParticipant@henebe: Hello Heinz,
To have randomized image on the slider please try using a child theme instead so you don’t have to make changes to the parent theme after every update. Let me know if you are familiar with child theme cusomization so that I can guide you.Kind Regards,
SkandhaJune 2, 2021 at 10:28 am #283652HeinzParticipantHello Skandha
I would have set that up with you once, but it didn’t work. I couldn’t figure out why it doesn’t work. I don’t know if you want to have a look at my system?
regards
HeinzJune 15, 2021 at 6:14 pm #284497HeinzParticipantDo you want to take a look at my site and check that the child theme works?
Many Thanks 🙂June 16, 2021 at 7:38 am #284573SkandhaParticipant@henebe: Hello Heinz,
I am getting the error message FEHLER: Zu viele fehlgeschlagene Anmeldeversuche. when I try to login to your site. I will let you know when I am able to login.Kind Regards,
SkandhaJune 16, 2021 at 7:53 am #284576HeinzParticipantHello Skandha
You have registered with 2 different IPs. I have put this on the white list. I have now reset your password. I am sure you received an email. If not, I can send you the password by email.
regards
HeinzJune 17, 2021 at 8:12 am #284678SkandhaParticipant@henebe: Hello Heinz,
I received the email that the password has been changed but did not receive a link to reset password.Kind Regards,
SkandhaJune 17, 2021 at 12:48 pm #284691HeinzParticipantSorry, was my mistake. You should now have the link.
June 18, 2021 at 5:16 am #284726SkandhaParticipant
@henebe: Hello Heinz,
I have copied the randomize slider code to the child theme. Can you check it in the child theme if it is working well?Kind Regards,
SkandhaJune 18, 2021 at 9:31 am #284738HeinzParticipantI did a little more testing. I activate the subordinate template (vah.ch \ wp-content \ themes \ catch-fullscresn-pro-main screen). Then the customized featured-slider.php does not work. Now I have copied this into the superordinate template (vah.ch \ wp-content \ themes \ catch-fullscreen-pro \ inc) and now it works. This means that despite the change, the wrong directory is being accessed.
June 18, 2021 at 11:49 pm #284730HeinzParticipantHello Skandha
Thank you for your help. The problem is the same as before. The customized featured-slider.php, which randomly arranges the slider images, does not work like this. The images are always displayed in the same order.
regards
HeinzJune 19, 2021 at 10:57 am #284819SkandhaParticipant@henebe: Hello Heinz,
I have activated the child theme on your site and the slider seems to show up random posts on every refresh. Can you please check again?Kind Regards,
SkandhaJune 20, 2021 at 4:40 pm #284893HeinzParticipantHello Skandha
Thanks alot. It works now. Over the weekend I have now adjusted all the settings that were partially not adopted. Everything is perfect now!
regards
Heinz -
AuthorPosts
- The topic ‘Error in functions.php’ is closed to new replies.