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
-
Matching user intent in my blog
Hello, I am planning on doing a blog on travel bike basic. I noticed that the google keyword tool gives me things like How to plan a bike route Can I bike during pregnancy etc... In order to compete on that keyword do I need to answer those questions or can I answer different ones and still rank such as : The tool kit that are recommend. Whether you should take an insurance or not, if so which one. Thank you,
Intermediate & Advanced SEO | | seoanalytics0 -
How to solve this issue and avoid duplicated content?
My marketing team would like to serve up 3 pages of similar content; www.example.com/one, www.example.com/two and www.example.com/three; however the challenge here is, they'd like to have only one page whith three different titles and images based on the user's entry point (one, two, or three). To avoid duplicated pages, how would suggest this best be handled?
Intermediate & Advanced SEO | | JoelHer0 -
Setting A Custom User Agent in Screaming Frog
Hi all, Probably a dumb question, but I wanted to make sure I get this right. How do we set a custom user agent in Screaming Frog? I know its in the configuration settings, but what do I have to do to create a custom user agent specifically for a website? Thanks much! Malika
Intermediate & Advanced SEO | | Malika10 -
What's the best way to deal with deleted .php files showing as 404s in WMT?
Disclaimer: I am not a developer During a recent site migration I have seen a bit of an increase in WMT of 404 errors on pages ending .php. Click on the link in WMT and it just shows as File Not Found - no 404 page. There are about 20 in total showing in webmaster tools and I want to advise the IT department what to do. What is the best way to deal with this for on-page best practice? Thanks
Intermediate & Advanced SEO | | Blaze-Communication0 -
Recovering from index problem
Hi all. For a while, we've been working on http://thewilddeckcompany.co.uk/. Everything was going swimmingly, and we had a top 5 ranking for the term 'bird hides' for this page - http://thewilddeckcompany.co.uk/products/bird-hides. Then disaster struck! The client added a link with a faulty parameter in the Joomla back end that caused a bunch of duplicate content issues. Before this happened, all the site's 19 pages were indexed. Now it's just a handful, including the faulty URL (<cite>thewilddeckcompany.co.uk/index.php?id=13</cite>) This shows the issue pretty clearly. https://www.google.co.uk/search?q=site%3Athewilddeckcompany.co.uk&oq=site%3Athewilddeckcompany.co.uk&aqs=chrome..69i57j69i58.2178j0&sourceid=chrome&ie=UTF-8 I've removed the link, redirected the bad URL, updated the site map and got some new links pointing at the site to resolve the problem. Yet almost two month later, the bad URL is still showing in the SERPs and the indexing problem is still there. Any ideas? I'm stumped!
Intermediate & Advanced SEO | | Blink-SEO0 -
Has anyone ever seen this canonicalization problem with Google?
I recently move my site (www.leatherhidestore.com/servlet/StoreFront) off of the ProStores platform because I could never get Google to show my homepage in SERP results - instead always selecting random product pages to rank. However, I never had this problem with Yahoo and Bing as they always defaulted to the homepage except when the category was a better match. Fast forward and I have just launched the site (www.leatherhidestore) on Magento Community and I STILL CANNOT GET GOOGLE TO USE MY HOMEPAGE FOR SERP RESULTS although I'm getting okay SERPS for random pages.....ERRRRRR! Of course, as if to rub salt in the wound, Yahoo and Bing are behaving just perfect. Still, I must think that if my Google would recognize my homepage (where the PR is and backlinks point to) I would be doing 10x better. I am showing duplicate page content and title problems which the developer is trying to solve but I do not know if this will fix the homepage Google issue. I feel like I must be in some sort of canonicalization death spiral. Has anybody dealt with this issue before and will mercifully share what I should do to fix it...please! Hunter
Intermediate & Advanced SEO | | leatherhidestore0 -
Re-Direct Users But Don't Affect Googlebot
This is a fairly technical question... I have a site which has 4 subdomains, all targeting a specific language. The brand owners don't want German users to see the prices on the French sub domain and are forcing users into a re-direct to the relevant subddomain, based on their IP address. If a user comes from a different country, (ie the US) they are forced on the UK sub domain. The client is insistent on keeping control of who sees what (I know that's a debate in it's own right), but these re-directs we're implementing to make that happen, are really making it difficult to get all the subdomains indexed as I think googlebot is also getting re-directed and is failing to do it's job. Is there are a way of re-directing users, but not Googlebot?
Intermediate & Advanced SEO | | eventurerob0 -
Crawling error or somthing else that male my page unvisible ( Simple problem, no solved yet )
Hi, my problem isn't solved and nobody was able to answer my question: why isn't my page poltronafraubrescia.zenucchi.it indexed for the keyword poltrona frau Brescia? The same page on another domain was four on the ranking reluts... And now it redirects to the new one... An you explain me how to proceed? I trust you... Help me...
Intermediate & Advanced SEO | | guidoboem0