June 7, 2021 at 3:53 pm #152144
When clicking on a PDF from the search results page, I get this error.
Notice: Undefined offset: 0 in /var/www/wordpress/wp-content/themes/education-hub/inc/helper/common.php on line 146
Recoverable fatal error: Object of class WP_Error could not be converted to string in /var/www/wordpress/wp-content/themes/education-hub/inc/helper/common.php on line 148
I’ve also started getting this error when clicking on standard pages and also news items. It’s random for those, not always the same page/news item.June 8, 2021 at 12:09 am #152239
Can you please share your site URL and some of the reference screenshots of the issue?
Regards,June 8, 2021 at 9:35 am #152279
This is a screenshot of the error I get when I do a search and then click on a PDF in the search results.June 10, 2021 at 1:07 am #152374
Did you use any plugins to manage pdf files? Also, how did you manage to show pdf files in search results
Regards,June 10, 2021 at 8:50 am #152399
We do use Relevanssi to enhance the search. It searches and displays PDF results.June 11, 2021 at 1:17 am #152417
Since we are totally unfamiliar with Relevanssi plugins. We have no idea how its works. Can you please report this issue to the Relevanssi plugin author. Maybe they will help you
Regards,June 11, 2021 at 8:49 am #152435
This isn’t caused by Relevanssi though. It’s the way the theme is displaying the attachments. The failing code is within the theme, not Relevanssi. It can’t find the category for the attachment or the parent ID of the category for the attachment. I’m not sure how to fix it though.June 12, 2021 at 10:33 pm #152484
Ok, I will forward this issue to the theme author. Maybe we will get a solution from him
Regards,June 14, 2021 at 2:48 am #152553
Can you Please disable the breadcrumb and check it if the pdf files opens or not
Regards,June 14, 2021 at 8:44 am #152574
Hi, it worked when I disabled the breadcrumbs.June 15, 2021 at 3:43 pm #152616
Am I going to have to keep my breadcrumbs off, or is the developer coming up with a fix for me?June 15, 2021 at 11:34 pm #152629
I guess the theme author has already fixed the issue. Can you please update the theme to v2.3.2?
Regards,June 16, 2021 at 8:39 am #152657
I updated and it removed the links from my search results page. Page descriptions are there, but I can’t click on any links.June 17, 2021 at 12:07 am #152808
You have use display:none css for the post title on search result some where in the theme. Can you please remove that css
Check this screen record
regards,June 17, 2021 at 9:50 am #152835
I’ve been all over the theme CSS and can’t find this code. Any idea what file it will be in? I’ve been through both the parent and child themes’ style.css file, as well as every other CSS file, and can’t find it anywhere.
- You must be logged in to reply to this topic.