1

I have been working on a site for a client and I have ran into a bit of an issue. I built the site locally and then pushed it to a staging server to show the client and everything is running fine. When we got to the point of launching the site, we did what our team normally does and everything seems to be working fine until you look at the page content... It only shows the first sentence.

Here is an example of what's going on:

staging server:staging server

live server:live server

My head is hurting from trying to figure this one out. I am using a custom theme and using to display the data on the left hand side like we always do, so that shouldn't be the problem. I am just at a loss, any little help would be awesome!

14
  • do u have devel module ?
    – Yuseferi
    Dec 27, 2013 at 17:48
  • do u check all of the file ( template) uploaded correctly? I suggest you change the theme for a drupal default and check it,
    – Yuseferi
    Dec 27, 2013 at 17:56
  • @zhilevan I do not have the devel module installed and I am going to try that now. Dec 27, 2013 at 18:01
  • @zhilevan I set the theme to Bartik and the content is showing up the same way. Do you think it could be a database problem? When you go to edit the copy, it shows all the content. Dec 27, 2013 at 18:07
  • if it shows the complete node on edit, it should not be database proble
    – arpitr
    Dec 27, 2013 at 18:15

2 Answers 2

2

It could be a control character that would remain or be not there when moving from one platform to another. Line breaks in Windows, UNIX and Macintosh text files all are different. If you have moved the database from one platform to another care should be taken to insure cr lf couplets are considered.

A similar situation could result from a database conversion that did not take into account these differences.

3
  • 1
    A quick test would be to go to the edit screen change to plain text, copy that text and then paste into a text editor like notepad++ for Windows or other like product. Then look for control characters by changing code types. The characters in question should be following the text that is visible in the "viewed" node. Dec 27, 2013 at 19:24
  • If the above testing shows where the problem is and you want a quick fix - you can go to each page with the problem and do the process as described but delete each incidence of the culprit character (if one is missing you would need to provide such instead of deleting) and then re-paste the text back into the node in plain text mode. This could be quicker than finding the cause of problem and re-porting the data. You could then locate the misstep and insure future moves that are similar are processed properly. Dec 27, 2013 at 19:29
  • 1
    Thanks for your help! I ended up taking the content and editing it in my text editor. When I did that I noticed that it was adding ETX next to the text, once I took that out and reposted the content it worked! Thanks for all y'alls help on my first post! Dec 27, 2013 at 19:34
0

I think the problem isn't about themes, I think the problem occur form database's data, If you can export live database and test it in another instance of local version and if them problem exist in it, I tell you upload good version of database version to live database again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.