PDA

View Full Version : Wordpress problem- fairly urgent as its my homepage


Fenland
21st December 2009, 15:07
Hi Guys/Gals,

Not after a freebie, willing to pay.

The front page of my Wordpress site has gone awry...and I havent touched anything (honest).

Its basically lost a huge chunk of text..? The text shows up when looking at the page in WP admin, but not on the site

If you can help please let me know.

Cheers

webhostuk
21st December 2009, 15:26
Hello,

Have you tried to upgrade wordpress? for cpanel?

Fenland
21st December 2009, 15:28
Hello,

Have you tried to upgrade wordpress? for cpanel?

No I havent personally, but my hosting was switched recently by my hosting company??

stugster
21st December 2009, 16:37
Open a support ticket with your host. Most good ones will fix it there and then for you ;)

FireFleur
21st December 2009, 16:56
It would be helpful if you gave the exact URL for the page you are talking about.

Off the top of my head, and after having a quick look at the links in your sig, it is probably something to do with the nav, which makes things appear and disappear and the text could have got mixed up in a class or tag type.

If you view source you should be able to see if the text is being transmitted, that's generally the first step in identifying the problem.

Fenland
21st December 2009, 17:20
http://farm5.static.flickr.com/4004/4204069866_f280d8cfab.jpg

Right, firstly a member has PM'd me with an offer of assistance and this is most appreciated (you know who you are)...but I do like to try and sort these myself first of.......

When I fail I'll be back to you

Above is the cached screen shot of the homepage (1st link from left in my sig).

As you can see, under the rotating images is quite a bit of text...this is now missing. This text also doesnt seem to appear in the "View- page source"

UKSBD
21st December 2009, 17:24
you need to look at the code in <div class="post-wrapper-home">
to see where it is pulling the content from.

Did you have it set up so the homepage displays a single post or page?

FireFleur
21st December 2009, 19:10
It is not in the source so it is most likely a problem at the server side.

Ceco Solutions
21st December 2009, 20:17
Go to your wordpress theme and then edit then choose home.php and find <div class="post-wrapper-home">


paste in this code (below) it must not go past this line >>> <div style="clear: both;"></div>
<div id="footer">



<div class="post-wrapper-home">
<h3>PROFESSIONAL PEST CONTROL WHEN YOU NEED IT…..</h3>
<ul>
<li><strong><span style="color: #000000;">Pest control Cambridge – Ely – Newmarket - Huntingdon – Cambridgeshire- Norfolk &amp; Suffolk</span></strong></li>
</ul>
<ul>
<li><strong><span style="color: #000000;"><span style="color: #000000;">We provide <a href="http://www.fenlandenvironmental.co.uk/domestic-pest-control">Domestic </a>/ <a href="http://www.fenlandenvironmental.co.uk/commercial-pest-control">Commercial</a> / <a href="http://www.fenlandenvironmental.co.uk/agricultural">Agriculturual Pest Control</a></span><br />
</span></strong></li>
</ul>
<ul>
<li><strong>Our <span style="text-decoration: underline;">commercial, wildlife management &amp; agricultural pest control</span> services operate throughout East Anglia</strong>.</li>
</ul>
<ul>
<li><strong><span style="color: #000000;">Specialising in wildlife control operations: </span></strong><strong><span style="color: #000000;"><span style="color: #003300;"> </span></span><span style="color: #003300;">rats | rabbits | moles | squirrels | foxes | deer | mink | mice </span></strong><strong><span style="color: #000000;">| birds<br />
</span></strong></li>
</ul>
<ul>
<li><strong><span style="color: #000000;">Experienced &amp; competent in all areas of pest control and problems.</span></strong></li>
</ul>
<ul>
<li><strong><span style="color: #000000;">Qualified &amp; independant professional pest control services for East Anglia</span></strong></li>
</ul>
<ul>
<li>
<h2><strong><span style="color: #000000;">CALL 01353 634 777<br />
</span></strong></h2>
</li>
</ul>
<p><strong> </strong></p>
<ul>
<li><span style="color: #000000;"><a href="http://www.fenlandenvironmental.co.uk/category/news" target="_self">LATEST NEWS IS HERE….</a></span></li>
</ul>
<p><span style="color: #333333;"><strong>Fenland Environmental Services Ltd provide qualified and independent pest control to all sectors.</strong></span></p>
<p><span style="color: #333333;"><strong>We specialise in Agriculutural and Wildlife control operations i.e. rabbit control (gassing, trapping, fencing), rat and rodent problems, mole catching and mole clearance, fox removal and control, squirrel trapping and removal, deer control and advice etc etc. </strong></span></p>
<p><span style="color: #333333;"><strong><span style="text-decoration: underline;">We offer a complete pest control service</span> including eradication, pest proofing, fencing services (rabbit fencing / deer fencing etc), habitat alteration and maintenance.<br />
</strong></span></p>
<p><span style="color: #333333;"><strong>We are based between Cambridge and Ely and are ideally placed to serve Cambridgeshire, Norfolk and Suffolk.</strong></span></p>
<p><span style="color: #333333;"><strong>Our <span style="text-decoration: underline;">domestic pest control service </span>operates predominantly in Cambridgeshire and the immediate surrounding area<br />
</strong></span></p>
<p><span style="color: #333333;"><strong>If you are looking for <a href="http://www.fenlandenvironmental.co.uk">pest control in Cambridge and throughout Norfolk and Suffolk</a> then try us</strong></span></p>
<p><span style="color: #333333;"><strong><br />
</strong></span></p>
</div>


If you need help i am willing to do this for free

Fenland
21st December 2009, 20:33
Just to say thanks to all for the advice.

I followed Ceco Solutions advice (as aluded to by UKSBD also) and it worked a treat (just a minor alignment problem to sort.)

Now, can anybody shed any light as to why and how this happened..????

Ceco Solutions
21st December 2009, 21:02
Just to say thanks to all for the advice.

I followed Ceco Solutions advice (as aluded to by UKSBD also) and it worked a treat (just a minor alignment problem to sort.)

Now, can anybody shed any light as to why and how this happened..????

No problem

Most likely you made some changes to the home.php or removed something.

could be a plug-in again depends on how your wordpress is configured

Faevilangel
21st December 2009, 21:05
Just to say thanks to all for the advice.

I followed Ceco Solutions advice (as aluded to by UKSBD also) and it worked a treat (just a minor alignment problem to sort.)

Now, can anybody shed any light as to why and how this happened..????

I'm going to be pedantic, but the code you was given is totally wrong.

Wordpress is a CMS so you should add the content from the backend.

I will rewrite the page for you, if you could send me your current page (home.php). Send as an attatchment to my email - gillman56[-- '@' --]googlemail.com.

The code you were given can't be updated easily without understanding the code). The reason for you using wordpress is so you can update the pages without coding it.

The reason for the error would be database based, as you're pages are stored in the database.

I won't charge for this, as it's pretty simple stuff ;)

UKSBD
21st December 2009, 21:11
Just to say thanks to all for the advice.

I followed Ceco Solutions advice (as aluded to by UKSBD also) and it worked a treat (just a minor alignment problem to sort.)

Now, can anybody shed any light as to why and how this happened..????

You copied <div class="post-wrapper-home"> within
<div class="post-wrapper-home">

you need to delete one of them (and probably a closing </div> too)

As Faevil says though, probably not the right way of doing it, unless you
had it hard coded in the first place.

Faevilangel
21st December 2009, 21:16
You copied <div class="post-wrapper-home"> within
<div class="post-wrapper-home">

you need to delete one of them (and probably a closing </div> too)

As Faevil says though, probably not the right way of doing it, unless you
had it hard coded in the first place.

All wordpress templates are hard coded (or should be).

The above would work for a temporary fix, but they should get it done properly so they can edit the pages quickly in future.

Ceco Solutions
21st December 2009, 21:48
All wordpress templates are hard coded (or should be).

The above would work for a temporary fix, but they should get it done properly so they can edit the pages quickly in future.


From the code i saw it looks like it has been hard coded

Faevilangel
21st December 2009, 21:53
From the code i saw it looks like it has been hard coded

That's how it looks from the website, but in the php file it probably was coded. using the wordpress tags.

stugster
22nd December 2009, 08:19
Yup. CMS system has been totally wrecked if you hard code the page.

Fenland
22nd December 2009, 10:12
Hmm, well this discussion has gone beyond my technical ability.:eek:

But to help you guys out who do now what you are talking about.., before this mishap I used to be able to go into WP admin and simply edit the homepage text as a 'page' in WP. So I assume the text was not originally hard coded..

WeDesign
22nd December 2009, 10:20
It could of happened because some of the code within your WP template could of been hosted online, and that host could of been shut down or removed. Like when you host an image on Photobucket or something, and they remove it, you cant see it anymore.

If you have switched hosts recently then your SQL server would have to be backed up and changed over to your new host because your MySQL would be at the server of "Localhost" and it would not work anymore if you changed your NS.

I haven't read the whole post fully but these are some of the solutions that could cause your problem ;)

Zach

Faevilangel
22nd December 2009, 21:03
Hmm, well this discussion has gone beyond my technical ability.:eek:

But to help you guys out who do now what you are talking about.., before this mishap I used to be able to go into WP admin and simply edit the homepage text as a 'page' in WP. So I assume the text was not originally hard coded..

In case you missed my original post, if you e-mail me the file, and the css file and I will rewrite it back to the original state, where you can update via wordpress