How to solve a PHP problem to increase user experience ?
-
Hi all, I am having a peculiar PHP problem that is affecting the user experience of the site and thus, the SEO.
The site is www.atlantiksurf.com and as you can see I use the QTranslate Plugin to manage the 3 different languages:
If you enter the german version: http://www.atlantiksurf.com/de/ , and you scroll down to the bottom of the page, you will notice there are a couple of posts that have (Español) in their Titles. This means that this particular post is written in Spanish and should only appear in the Spanish version of the site.
Every single post is published on the three versions even when they are language orientated. The result is that when you press that specific Spanish title on the German version, you get nothing but this:
http://www.atlantiksurf.com/de/aritz-aranburu-tendra-que-estar-un-mes-sin-competir/
Because obviously there is nothing there.
If I go to the wordpress admin panel and search for the post manually, I can solve the problem by erasing all the default code of the different language versions that should not appear. But this is only a manual and non practical solution.
The problem, I think, might be in the PHP orders that the Wordpress Theme is receiving from somewhere.
I come to all of you SEomoz users as my last chance, because I've been months in discussions with Qtranslate users and php amateurs that cannot solve the issue.
I know that this question isn't strictly about SEO, but in a way it is, because it must be affecting the way that Google look at us.
Please, some help or orientation would be highly appreciated.
-
Ok thanks a lot ! Cheers !
-
I'm not spotting it right away. The problem is I would need to know what the plug-in is doing. . .and I'm not the best guy to ask those kinds of questions. I haven't written in PHP/MySQL in about 8 years so I'm a bit out of it.
If you go to http://wordpress.org/support/plugin/qtranslate you should be able to post for help there.
-
Do you see any errors or can you localize the mistaken PHP function in this code?
if ( $postImg['showImage'] ) { ?>
endwhile;
else :
echo ''.__('There are no featured posts selected to display in this area (yet).',THEMENAME).'
';
endif;//Reset Query
wp_reset_query();
?>} // end if( featuredContentActive != '')
?>// Home Page Blog Posts
if (get_theme_var('homePostsActive') !== '') { ?>global $firstPage;
$firstPage = true;if ($paged > 1) {
// filter for offset and proper paging
add_filter('post_limits', 'my_post_limit');
// modify paging (to work with offset for home page)
$paged = $paged-1;
$firstPage = false;
} -
Thank you very much for your answer, it gave me some clues I will investigate.
-
I can diagnose where a search for the problem should begin, but not so much the specifics. My guess is the issue is in the plug-in.
WordPress is designed to read constantly from a database and it's reading something that looks like %TITLE%. Now I've never experimented with QTranslate, but my assumption is they are adding additional database entries for the various languages and then each post, in their respective language, is supposed to pull from it's own database.
It could be something as simple as a pointer to the database that is still using the Spanish version instead of making the switch the plugin is supposed to accomplish.
Again, QTranslate, who knows their own code, should be able to diagnose something like this very easy. I'm sorry to hear they haven't so far. Your solution is going to be either getting them to fix it or hiring someone who can edit PHP and MySQL (which usually go together anyway).
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
User intent
Hello, Can you rank on a keyword like "Loire Valley bike tours" (plural version) on the 1 st page that describes your tour with just 1 tour and not a lit of tours ? Thank you,
Intermediate & Advanced SEO | | seoanalytics0 -
How to find Topics ? software or results and user intent
Hello, Is there a software that is better than an other to find to right topics to cover in my content. I am thinking about Moz, Marketmuse or Semrush or is it better to look at the search results because they match user intent and see what is covered and cover those in my content Thank you,
Intermediate & Advanced SEO | | seoanalytics1 -
How does Tripadviser ensure all their user reviews get crawled?
Tripadvisor has a LOT of user generated content. Searching for a random hotel always seems to return a paginated list of 90+ pages. However once the first page is clicked and "#REVIEWS" is appended to the URL, the URL never changes with any subsequent clicks of the paginated links. How do they ensure that all this review content gets crawled? Thanks, linklater
Intermediate & Advanced SEO | | linklater0 -
What are Soft 404's and are they a problem
Hi, I have some old pages that were coming up in google WMT as a 404. These had links into them so i thought i'd do a 301 back to either the home page or to a relevant category or page. However these are now listed in WMT as soft 404's. I'm not sure what this means and whether google is saying it doesn't like this? Any advice welcomed.
Intermediate & Advanced SEO | | Aikijeff0 -
Www for main site and non www for integrated blog - is this a problem?
Hi Mozzers My client has their main site with www as the preferred version and utilises 301s for the non www version which is good. For their integrated WP blog, they prefer the non www version, again utilising 301s. So we have no duplicates, but is this different use of sub domains going to hurt SEO with regards to the links pointing in? ie do the links pointing into the blog benefit the main site or are we missing a trick and should change the blog to www? Many thanks Wendy
Intermediate & Advanced SEO | | Chammy0 -
SEO Problem with PowerPoint to PDF?
Can anyone think of any reasons why it would be a bad idea to use PowerPoint to create documents and then convert them to PDFs? Do you think this could cause any crawling issues for Google?
Intermediate & Advanced SEO | | BlueLinkERP0 -
Www. & Non-www versions problem
I currently have both WWW and non-WWW versions of my site live on the web, and I want to be able to have all non-WWW to point to WWW.http://nile-cruises-4u.co.ukhttp://www.nile-cruises-4u.co.uk
Intermediate & Advanced SEO | | NileCruises
I want just the WWW version of the site live.I'm wondering the best way to resolve this?Is it normally dealt with in the .htaccess file and I think, looks like this but I'm not sure: <code>RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ [http://www.](http://www.)%{HTTP_HOST}/$1 [R=301,L]</code>0 -
Increasing Internal Links But Avoiding a Link Farm
I'm looking to create a page about Widgets and all of the more specific names for Widgets we sell: ABC Brand Widgets, XYZ Brand Widgets, Big Widgets, Small Widgets, Green Widgets, Blue Widgets, etc. I'd like my Widget page to give a brief explanation about each kind of Widget with a link deeper into my site that gives more detail and allows you to purchase. The problem is I have a lot of Widgets and this could get messy: ABC Green Widgets, Small XYZ Widgets, many combinations. I can see my Widget page teetering on being a link farm if I start throwing in all of these combos. So where should I stop? How much do I do? I've read more than 100 links on a page being considered a link farm, is that a hardline number or a general guideline?
Intermediate & Advanced SEO | | rball10