Forums

[resolved] 2 problems: 1) can't edit and 2) wp is inserting extra code into my posts (11 posts)

  1. stuperb
    Member
    Posted 3 years ago #

    Hi everyone. I'm having 2 problems that started at the same time, so I'm guessing they're related. I haven't changed any settings.

    1. I can't edit all of my posts. It's not consistent - I can edit some of them, and not others, and sometimes I can edit a given post and then NOT be able to a few minutes later. When I click edit on some of the posts, I get this:

    Warning: main(/usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/Text/Diff.php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/wp-diff.php on line 4 Fatal error: main(): Failed opening required '/usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/Text/Diff.php' (include_path='.:/php/includes') in /usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/wp-diff.php on line 4

    2. when I click "Preview" on the posts, sometimes it inserts this at the top:

    <!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object> <style>
    st1\:*{behavior:url(#ieooui) }
    </style> <![endif]--> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p.story-body, li.story-body, div.story-body {mso-style-name:story-body; mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} span.dateline {mso-style-name:dateline;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> <!--[if gte mso 10]> <style>
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";
    mso-ansi-language:#0400;
    mso-fareast-language:#0400;
    mso-bidi-language:#0400;}
    </style> <![endif]-->

    I'm using the Xeira theme, on version 2.6.1, in case it matters. Sorry for the wall of code here.

    Thanks!

  2. whooami
    Member
    Posted 3 years ago #

    the first problem would generally be caused by having not uploaded all of the files and subdirectories to the wp-includes/ directory.

    check that first.

    the second problem is caused by you either using "the paste from word" button OR not using that button and then pasting from word, I suspect.

  3. stuperb
    Member
    Posted 3 years ago #

    Hi whooami. Thanks for responding.

    I'll check the wp-includes stuff. I just don't understand why the problem is intermittent & inconsistent.

    On the second problem: you're exactly right, and I'm kicking myself. As a web designer I know better than EVER to paste anything from Word, but I'd forgotten and copied some posts from an old blog into word to save for later. Thank you for pointing this out.

  4. stuperb
    Member
    Posted 3 years ago #

    ok, it seems to be looking for a file that doesn't exist in a directory that also doesn't exist.

    for anyone who has 2.6.1, can you tell me whether your wp-admin directory contains a subdirectory called "text"? and if so, whether the text directory contains a file named "diff.php"?

    I don't have any of that. Is it trying to call up the wrong thing, or am I missing files?

    Thank you!

  5. whooami
    Member
    Posted 3 years ago #

    for anyone who has 2.6.1, can you tell me whether your wp-admin directory contains a subdirectory called "text"? and if so, whether the text directory contains a file named "diff.php"?

    As a web designer ...

    you can do that. go download the zip file, unpack it properly -- preserving the directory structure.

    furthermore, if you actually look at the errors.. its not looking for a file inside wp-admin/ its looking for a file inside wp-includes/Text/

  6. stuperb
    Member
    Posted 3 years ago #

    right. I realize that it's looking for it inside that text directory.

    I downloaded the zip file & unzipped it. The wp-admin folder didn't contain a subdirectory called "text"

    Any thoughts on why my wordpress is attempting to look there or how to change it?

    Thanks again!

  7. whooami
    Member
    Posted 3 years ago #

    The wp-admin folder didn't contain a subdirectory called "text"

    thats right. and like I said, thats not where your error is pointing you either. its pointing you to wp-includes/Text/

    Warning: main(/usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/Text/Diff.php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/wp-diff.php on line 4 Fatal error: main(): Failed opening required '/usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/Text/Diff.php' (include_path='.:/php/includes') in /usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/wp-diff.php on line 4

    LOOK at the errors.

  8. stuperb
    Member
    Posted 3 years ago #

    I'm a moron. I just mistyped in my last post.

    I MEANT that "wp-includes" (NOT wp-admin) doesn't contain a subdirectory called "Text". It only contains subdirectories for "images" and "js".

    Sorry about that.

    This exists: /usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/wp-diff.php

    This does not:
    '/usr/local/pem/vhosts/168105/webspace/httpdocs/wp-includes/Text/Diff.php

    Now: any other thoughts? Sorry about wasting your time on the last one.

    Thanks.

  9. whooami
    Member
    Posted 3 years ago #

    The wp-includes folder didn't contain a subdirectory called "text"

    (emphasis mine)

    if you are unpacking the zip and dont see that directory than youre not unpacking 2.6.1 or youre not unpacking it correctly. I assure you it is there.

    Its Text, btw, capitalized, and its there.

  10. stuperb
    Member
    Posted 3 years ago #

    I feel like I'm taking crazy pills.

    You're right. Something is going on with my Vista that's shutting down the Windows Explorer in the middle of the unzipping process, so I simply didn't get the file I needed.

    I imagine this will fix it. Thanks, and sorry for what was probably a frustrating discussion.

  11. whooami
    Member
    Posted 3 years ago #

    no worries, wouldn't be the first vista issue I've heard about here.

Topic Closed

This topic has been closed to new replies.

About this Topic