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
-
Are iframes really an organic search problem?
I'm helping someone with a new site that will have pages for organic search that contain embedded video. Some will be youtube embeds and some will be wistia embeds. These pages will have several hundred words of transcript text and the embeds (iframes) iframes themselves will be rather small, but expandable and possibly more than one per page. The transcript text area is more like 80% of the page. Do you think this is an organic search problem? I use one site audit tool that calls this out as a serious warning. Currently, the embedded player(s) are a column down the left side, about 1/4th of the width of the page, and the transcripts are everything else, wrapping around it. The transcripts are fully readable and not hidden in some kind of expandable accordion or anything. Does layout matter in this issue? Thanks... Darcy
Intermediate & Advanced SEO | | 945010 -
Is it a problem to use a 301 redirect to a 404 error page, instead of serving directly a 404 page?
We are building URLs dynamically with apache rewrite.
Intermediate & Advanced SEO | | lcourse
When we detect that an URL is matching some valid patterns, we serve a script which then may detect that the combination of parameters in the URL does not exist. If this happens we produce a 301 redirect to another URL which serves a 404 error page, So my doubt is the following: Do I have to worry about not serving directly an 404, but redirecting (301) to a 404 page? Will this lead to the erroneous original URL staying longer in the google index than if I would serve directly a 404? Some context. It is a site with about 200.000 web pages and we have currently 90.000 404 errors reported in webmaster tools (even though only 600 detected last month).0 -
Big problem with duplicate page content
Hello! I am a beginner SEO specialist and a have a problem with duplicate pages content. The site I'm working on is an online shop made with Prestashop. The moz crawl report shows me that I have over 4000 duplicate page content. Two weeks ago I had 1400. The majority of links that show duplicate content looks like bellow:
Intermediate & Advanced SEO | | ana_g
http://www.sitename.com/category-name/filter1
http://www.sitename.com/category-name/filter1/filter2 Firstly, I thought that the filtres don't work. But, when I browse the site and I test it, I see that the filters are working and generate links like bellow:
http://www.sitename.com/category-name#/filter1
http://www.sitename.com/category-name#/filter1/filter2 The links without the # do not work; it messes up with the filters.
Why are the pages indexed without the #, thus generating me duplicate content?
How can I fix the issues?
Thank you very much!0 -
Which is better /section/ or section/index.php?
I have noticed that Google has started to simply link to /section/ as opposed to /section/index.php and I haven't changed any canonical tags etc. I have looked at my pages moz authority for the two /section/ = 28/100
Intermediate & Advanced SEO | | TimHolmes
/section/index.php = 42/100 How would I go about transferring the authority to /section/ from /section/index.php to hopefully help me in my organic serp positions etc. Any insight would be great 🐵0 -
Magento Base Install 302 from non www to www , problems?
Using our crawl diagnostics report I am seeing a 302 redirect (temporary) from mydomain.com to www.mydomain.com. It is on an installation of magento with no modifications to the htaccess. This seems problematic, should I change to a 301 in .htaccess?
Intermediate & Advanced SEO | | Punkaj0 -
Are menu links with the same anchor text but different destinations a problem?
My website uses the same anchor text to go to different pages, with section headers indicating where they go. Is this a problem? f so, why? Here is an example of what I mean: Women Shoes - link to women shoes Clothes - link to women clothes Accessories - link to women accessories Men Shoes - link to men shoes Clothes - link to men clothes Accessories - link to men accessories Kids Shoes - link to kids shoes Clothes - link to kids clothes Accessories - link to kids accessories
Intermediate & Advanced SEO | | theLotter0 -
Problem appearing 1 st with a sub page when typing my company name and product
I just did a test typing my company name followed by what I sell
Intermediate & Advanced SEO | | seoanalytics
Let's say "company green widgets " I noticed that my webpage ( which is a subpage ) doesn't appear 1 st on google when i type that keyword.... Either some website that talks about my product appears or my homepage appears. Why is that ? Could it be a canonicalization issue ? Thank you,0 -
Problem with 404 and 500 Status code pages
Dear SeoMozzers, I have a question related to one of the sites I have recently changed the URL, going from http:example.com to http://www.example.com I did 301 redirects, as I was recommended to do. In the past month I have noticed an incredible drop in Google's rankings for many keywords and checking the crawling errors appearing in the SEO Crawling Report I have witnessed mayhem with Canonical/301 redirect types of errors. Now, things seem a little better. I have noticed a reduction in the number of 301 and Canonical type or errors (by the way, I still do not get the Canonical issue :-)). My little questions are the following: Will I ever go back to the positions I used to occupy before I redesigned the site's URL structure? I have now noticed that the SeoMoz Crawling report show "404 Staus" errors and one "505 Status" error. Can somebody please tell me how to fix the 404 Status Errors? Can I fix them by myself, or maybe I can ask the guys at the web hosting company, since I am really bad at taking care of technical issues? Thank you for the time you took to clarify my doubts. Ad maiora, Sal
Intermediate & Advanced SEO | | salvyy0