benjamin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Slow websites – Sites are well optimizedHi,
Have you checked the Apache logs for additional errors? The article below is helpful. Also, I would try increasing the default memory limits in the php.ini file, if possible.
cURL error 28 in WordPress
https://www.samuelaguilera.com/post/curl-error-28-wordpressTry using the the dig command to time the dns response.
https://wp-rocket.me/blog/test-dns-server-response-time-troubleshoot-site-speed/
Let us know what you find.
ben
Hi @mango123,
What does your get_template_part() call look like? It’s probably not able to match the slug.
The Query Monitory plugin is pretty handy for getting more information on which templates are being called (and what’s not being loaded).
Ben
Forum: Fixing WordPress
In reply to: PHP error “trying to access array offset”Forum: Fixing WordPress
In reply to: PHP error “trying to access array offset”Hi,
Hmmm… not sure, do you have the content/images loaded in the fresh install? In that part of the code, it’s trying to fetch an image.
Ben
Forum: Fixing WordPress
In reply to: PHP error “trying to access array offset”Hi,
Right now php 8 is in beta support, so that might be the issue.
https://make.www.ads-software.com/core/handbook/references/php-compatibility-and-wordpress-versions/
You can turn off those notifications for the time being ( I know this is not the optimal solution).
https://www.php.net/manual/en/function.error-reporting.php
ben
Forum: Fixing WordPress
In reply to: PHP error “trying to access array offset”Hi,
A PHP warning message like will not break the site but there is some code doing something unapproved (i.e. not checking for the existence of a value).
What version of PHP are you using and is there any difference between the two systems? A newer version maybe more strict.
Ben
- This reply was modified 3 years, 2 months ago by benjamin.
Forum: Fixing WordPress
In reply to: Integrating a html website with WordPressHi,
Good question. I think moving this to a subdomain and then installing WordPress on the main domain makes sense to me.
Ben
Forum: Fixing WordPress
In reply to: Remove Google Analytics and Adsense fragmentsHi David,
Thanks for posting the page. I checked in the Chrome developer tools and I don’t see ad_status.js being loaded on that page.
I would re-run the report in a few hours, it could be a caching issue.
Ben
Hi Norm,
Give this plugin a try, it worked for me.
https://www.ads-software.com/plugins/shortcode-in-menus/
Alternatively, a migration plugin will handle all the url changes between production and your staging environments.
Cheers,
BenHere’s an example:
add_filter( 'wp_nav_menu_items', 'my_custom_menu', 10, 2 ); function my_custom_menu( $items, $args ) { if( $args->theme_location == 'primary') { $items .= '<li class="menu-item"><a href="link here"'.'</a></li>'; } return $items; }
Hi Norm,
When I placed the shortcode in a page, it works fine.
“I’m adding the shortcode into a nav menu custom menu item similar to this in the url field of the menu item:”
Special characters are being stripped, I would recommend using a filter function to add your custom menu items.
https://developer.www.ads-software.com/reference/hooks/wp_nav_menu_items/
Ben
Forum: Fixing WordPress
In reply to: Featured Image size problemGreetings Shelberg,
I would check your template files here. You are either using different templates or one is calling a different loop template ( see understrap/loop-templates or understrap/page-templates).
You can control the output of the featured image, for example
get_the_post_thumbnail( $post_id, array( 500, 500) );
See: https://developer.www.ads-software.com/reference/functions/get_the_post_thumbnail/
Let us know if you get it worked out.
ben
Forum: Fixing WordPress
In reply to: PHP UpdateHi eclecticred,
As corrinarusso mentioned, I wouldn’t worry about it right now.
The script is likely running as as a scheduled job, so the health check wouldn’t instantly recognize the update.
If it’s not cleared out by tomorrow let me know, I’ll take a closer look at the code.
Cheers,
Benjamin- This reply was modified 3 years, 2 months ago by benjamin.
Forum: Fixing WordPress
In reply to: Plugin for geo directoryYou know, I took a look at geoDirectory.com and that site doesn’t look valid. Are you sure that is correct address?
My suggestion would be to find the plugin that best suits your requirements, and reach out to the support or developer teams for customization help.
- This reply was modified 6 years, 2 months ago by benjamin.