Google toolbar truncating site - php

Hi I've got a site I'm working on it's just a html site with Wordpress integrated to allow a few dynamic features for the client. For some reason IE with Google Toolbar enabled truncates the information and strips the css. In other words it's like it does read anything until it get half way down the page. When you refresh a few times it will change what it does and doesn't display. If I remove the wordpress code fragment at the top(see below) it works, but of course all the dynamic content goes away. The weird thing is that if it's WP generated page it works just fine.
<?php
require('./cms/wp-blog-header.php');
?>
I'm a little lost on this. I'm not doing anything I haven't done several times before with fine results and I can't find anything about it online. Any help would be great, thanks.

Related

Wordpress site broken, editor not working properly or at all

im working on adding and modifying the content of a website, but im having multiple issues with the very basic functioning of the editor. Please keep in mind i didnt build this site myself, so i might not be aware of many things that may be obvious to you.
If left unmodified, to the user, the site shows no issues whastoever, it is I as the administrator who experiencies all these issues.
I will describe/ show the issue and give a list of the things i have tried already.
While looking at Cpanel's PHP admin app, and the htaccess file, i see the php version is 7.4. However, while using wordpress, the site health status tool warns me that im using php version 7.1.33
Im not getting the admin bar when looking at the website, it just shows a white bar with nothing else.
3.If i go to the backend editor and try to customize the template im using (called Jupiter 5) i get very few options in the side bar, it doesnt show things like header options for example. And i have no floating editor options on the site itself, i get no tools, nothing.
See image
When i go inside wordpress to "pages" and try to edit a page, the editor box shows the content with the code included or shows nothing while using the "visual composer" mode. This is how it looks
When i try changing the template, the content appears like this. A huge mess, though some editor controls show up in this case
6.I tried using plugin detective but when i launch it, and it asks for my credentials, i hit login yet it does nothing.
I tried disabling all plugins, only header and bottom show up kinda normally, the body becomes text with code like the image of point 5. I still dont get the admin bar on site.
If I, after disabling all plugins go to pages, then select any page and click "edit", the adress of the site shows im on the edit page, but the page itself is completely blank, i dont even get the wordpress bar at the left.
If I disable all plugins, then activate only a plugin called WPBakery, the body of the site stops showing text with code and actually shows most visual elements, no edit options though, except for a small text at the bottom. A weird thing about this plugin is that despite of its name, when activated, it shows up as "Visual Composer" instead of WPBakery.
So far, besides disabling plugins and testing, i have only tried Updating Wordpress, the only thing that changes is that the admin bar finally shows, but the "customization" mode remains exactly the same, useless.
Classic editor is already installed btw.
I hope someone can help me, thanks.

Can't find a second google analytics code that's causing conflicts

I have a strange situation: I have a Wordpress site which includes an area to paste analytics code. I've done so. However, we're getting messages from google saying there is a tracking code mismatch. After calling Google we viewed the page source of the site and the SECOND analytics code is indeed there. It's preventing the REAL analytics code from firing. I just want to remove it.
However, there is only one place to put the tracking code in my site and that's where I've put the valid tracking code. I use Dreamweaver for my FTP stuff and have done a site-wide search for this extra analytics code and NOTHING shows up.
I've checked header.php, footer.php, index.php separately. The only thing I see is PHP code saying place analytics code here (i.e. from the theme options).
Where the hell is this second script and how can I find and delete it? Thanks for any help. I'm pulling my hair out about this.
Is the second/invalid analytics code appearing right above or below the first? Or is it in an entirely different area in the source code?
It may be a bug with the Wordpress theme you're using, or you might have a plugin enabled that has some predefined settings for inserting Analytics code. It might even be a widget. You could try disabling your theme/plugins to troubleshoot.
Temporary solution would be to remove the code from the Wordpress backend and add it into header.php or footer.php manually.

Homepage on custom Wordpress theme w/ permalinks records two weird page hits

I have taken over the development of a website and have written a simple page hit recording script that I've placed in the header.php of the theme. It seems to work great except when visiting the base url of the site. Then, it records two hits, one has the correct url (www.idataresearch.com) but the other one looks like www.idataresearch.com/page/2/. Both hits have the wrong page title recorded as well. I have a feeling it's something to do with the loop or the way the template loader is working. Any help would be greatly appreciated.
I have no idea why it's doing this but I've decided to just filter out those weird extraneous results. The site seems to be working well otherwise ...

Google cache shows only header and footer. Skips body content

I have an issue in my website. Looking up my site in search engines, and viewing the cached version of the index page, shows only the header and footer of the page. Everything in between is omitted. This issue is apparent only in the index page. Other pages on the site are fine.
Here is the cached page
Here's a direct link to the page.
Things to note:
This issue does not seem to happen in Google search only, but also
Bing and Yahoo.
In Google cache, it's possible to display the text-only version of
the page, which seems to SHOW the page just fine, including the omitted content but without style.
In google webmaster tools, the page preview of the index page does
not have this issue. It shows it just fine.
The index page is using a jquery plugin to display the car brands,
and it allows for sorting based on region/country. I don't know if
this is the culprit.
My site is in Arabic. Sorry if you don't understand anything .-.
I think Google seems to have trouble parsing your document. You have 2 sets of <html></html> tags in your document, which could lead the Google engine to confusion and errors.
I would strongly recommend you to fix your HTML errors using W3 Validator, this will probably allow Google to parse your document without errors.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.mrkabat.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

Problem, site works on FF4 but not IE9 or other browsers

I have been developing a website for a University coursework, and at the moment, i have managed to get the features i want.
The website works using jQuery,AJAX and PHP to allow the user to view articles and media that goes with each article. My problem is that the site works as it should on my laptop, on FF4 however it does not work on my IE9 or other browsers, I have given the link to a few people and they all encounter the same problem.
The problem is that when you click the story on the left (thats how you navigate) it fades the text as it should, but it is meant to load in the next story aswell.... If you guys could help, that would help alot.
Link to website: newspaper.nmyster.co.uk
Thanks
IE8 is bugging out on this line:
console.log(storyId);
I'd suggest commenting this out.
If you enable debugging you should be able to see the same error.
These kind of problems always occurs by HTML and JavaScript support of broswer. First of all you shold validate your HTML by W3C validation. If the problem still persists than carefull check your javascript or jquery.

Categories