Hello,
I apologize for the issue you are facing with updating the rank-math.php
file in your Kadence theme. The error message you received indicates that there is a syntax error in your PHP code, specifically an unmatched closing brace (}
). This typically means that there is a missing opening brace or an extra closing brace in your code.
To resolve this issue, please follow these steps:
- Check the Code: Review the code you are trying to add to the
rank-math.php
file. Ensure that every opening brace {
has a corresponding closing brace }
.
- Use a Code Editor: If possible, copy the code into a code editor (like Visual Studio Code or Notepad++) that can help you identify syntax errors. These editors often highlight mismatched braces.
- Test with Minimal Code: If you’re unsure where the error is, try adding a minimal piece of code first to see if it saves successfully. Then gradually add more code until you find the problematic section.
- Backup and Restore: If you have a backup of the original
rank-math.php
file, consider restoring it and then reapplying your changes carefully.
If you continue to experience issues, please reply to this ticket with the specific code you are trying to add, and a human agent from the Rank Math Support team will assist you further. Additionally, if you could provide your site URL, it would help us diagnose any potential conflicts.
Thank you for raising this concern, and we’re here to help you resolve it!
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We tried to check your websites, but the temporary login URLs you shared have expired and are getting redirected to the homepage.
Please renew and extend them to at least 3 days so we can check the issue further.
Looking forward to helping you.
I’ve extended it to 24 hours, just try again.
Hello,
It appears the login details have expired again.
You can leave it active for 3 days this time to give us ample time to debug the issue.
We look forward to helping you.
Thank you.
Hello,
The rank-math.php file in your site is empty.
Could you please share the PHP code you are inserting so we can apply it properly on your site?
You can use this tool to copy and paste it, then share the generated link here:
https://pastebin.com/
Looking forward to helping you.
Oh my….because when I try to save it it said there is an error….I just try to make the FAQ folded…with the code you provided in the tutorial.
Hello,
It seems that you’re referring to the collapsible code:
https://rankmath.com/kb/table-of-contents-block/#make-the-table-of-contents-collapsible
We have successfully added the filter inside your rank-math.php file. You must be missing the opening PHP tag at the first line; that’s why you’re getting the error, and it is not getting saved.
Looking forward to helping you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.