What causes this?

by 31 replies
35
Hi there

I am shifting my sites to a new host and this site is showing this:

Index of /

What could be a possible cause for this happening?

I just looked at the error log and it is saying this:

[19-Oct-2008 00:04:24] PHP Warning: require(ABSPATHwp-includes/compat.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/vivie1/public_html/kiteflyingsociety.com/wp-settings.php on line 202
[19-Oct-2008 00:04:24] PHP Warning: require(ABSPATHwp-includes/compat.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/vivie1/public_html/kiteflyingsociety.com/wp-settings.php on line 202
[19-Oct-2008 00:04:24] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'ABSPATHwp-includes/compat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vivie1/public_html/kiteflyingsociety.com/wp-settings.php on line 202


Cheers
Viv
#programming
  • Basically, it's telling you that whatever your script is looking to process at line 202 of wp-settings.php it can't because it's not there.

    Your site is showing up as index of........ because there is no index.php or index.html file in there.

    Some thing has been missed and not copied over correctly.

    Hope that helps.

    Janet
    • [1] reply

    • Hi Janet

      Thank you so much for responding

      I just looked and you are right there is no index.php file so I will go and hunt that little bugger down :rolleyes:

      I can't believe how difficult this is turning out to be. I have six sites in error so far and as far as the error message on line 202 I know this file is there and it is also the same for another site that's receiving the same error message but again I know that that compat.php file is there in this other sites includes folder so would you have an explanation as to why this is happening. I have downloaded it again and then transferred into the includes folder but it still returns the same error.

      What I find so frustrating is these sites weren't in error before doing the file transfers so how can these errors be occuring?

      Cheers
      Viv

      EDIT: I have just uploaded the index.php and it is out of error and doesn't seem to be concerned with the compat.php which is great
  • It looks to me like
    ABSPATHwp-includes/compat.php
    is not right

    Unless you have replaced the real path with ABSPATH, I would expect to see a HTTP or file type path there, e.g. /wp-includes/compat.php or /blog/wp-includes/compat.php

    So my guess is that a variable called ABSPATH is given a value of ABSPATH by default (for debugging purposes) and the settings should change the value of it to tell it where WP is installed, and that is/has not happened.
    • [1] reply
    • Thanks for responding to my thread question. As Janet suggested, I hadn't uploaded the index.php file and as soon as I did it went off error and doesn't seem to be concerned with the compat.php file unlike two other WP sites I have shifted that are showing the exact same error but they did have their index.php file uploaded, unlike the kiteflyingsociety

      I have also sent you a PM

      Cheers
      Viv
  • Looking for something else I found this, which would confirm my suspicions.

    require (ABSPATH . WPINC . '/feed-rss.php');

    that reads join the variable ABSPATH to the variable WPINC to the string '/feed-rss.php'

    so your error message makes it look the WPINC has been given a value, but ABSPATH has not.
    which might be because of an earlier error.

    Can you point me at a URL where the error shows up?
    • [1] reply
  • OK.
    I see the compat errors on blu-ray1st and dealerlife

    on blueray360 I see a post.php/query.php error. I think the query.php error is causing the post.php error

    and lowcarb can't find the wp() function.

    Can you find this file:

    /home/vivie1/public_html/dealerlife.info/wp-includes/compat.php
    and
    /home/vivie1/public_html/blu-ray1st.com/wp-includes/compat.php



    If they exist, and are larger than 0 in size, you'll need to check the security on them as that's the only other cause I can think of.
    • [1] reply
    • Hi once again Roger

      I have located the compat.php file for blu-ray1st. Now when you say is larger than 0 do you mean where it says the size of the file?

      If that is what you mean it says the file size is 2.63kb. If I am on the right track you suggest that I would need to check the security on them.

      For me that is a big???? how do I do that! I am a complete non-tech/newbie and have no clue whatsoever about how to do that

      If I am on the right track then the next lot of instructions would be good

      I would dearly love, in particular, to sort the blu-ray sites out and save myself from the ongoing embarrassment
  • OK. Is the folder path for it

    /home/vivie1/public_html/blu-ray1st.com/wp-includes/compat.php
    or something different?

    for the security, on the hosting panel file manager you should see 3 digits near the file name
    something like 664 or 777
    tell me that number as well.
  • This I've found it (evil me)
    Your path is
    blu-ray1st.com/wp-includes/wp-includes/
    instead of
    blu-ray1st.com/wp-includes/

    You've copied everything one level too deep.
    • [1] reply
    • I don't mind if you do whatever you need, so long as it gets me out of the Sh....t

      Thanks for doing whatever it was that you did! It just goes to show that nothings impossible

      I will replace the folder or file (I don't know yet without looking, what it is)that has the missing code for blueray360.com

      Can you help me with the other problems? I don't want to be appearing as though I am being greedy but I would really really like to get these sites sorted and I am also not looking forward to shifting the rest after this lot :confused:

      I really do appreciate your help
  • The blueray360.com error looks almost like it's missing the first part of the file.
    it shows code, which it shouldn't, and it goes

    PHP Code:
    ...T->QUERy_var )  termlink "file?t->query_var=slug" 
    (capitalised bit is missing compared to a copy I found in Google code search)
  • oops forgot to tell you the info you asked for about the compat.php for blu-ray1st. It says 0644 in the next column to the file size.
    • [1] reply

    • Thank you very much for alerting me to the situation I had created with Blu-ray1st. I deleted the extra includes and hey presto it was online.

      Now with blueray360.com. I deleted and replaced the includes folder but this hasn't fixed the error.
      I have used the code editor to edit the post.php file and at line 2768 this is what it looks like:

      update_object_term_cache($post_ids, 'post');

      the query.php on line 684 looks like this:

      foreach ( $GLOBALS['wp_taxonomies'] as $t ) {

      Can you see what is wrong with these lines?
  • Ok
    644 = Owner Read/Write, everyone else Read. which is correct.

    The fix for
    blu-ray1st.com and dealerlife.info is to

    remove this folder
    blu-ray1st.com/wp-includes/wp-includes/

    and copy this folder again

    blu-ray1st.com/wp-includes/

    for blueray360.com I would first try just replacing query.php
  • $GLOBALS['wp_taxonomies'] is empty because the call to update_object_term_cache($post_ids, 'post'); failed

    I think the file you need to replace is called taxonomy.php
    in wp-includes
    • [1] reply


    • Dealerlife.info fixed
      • [1] reply
  • OK. so
    blu-ray 1st looks right, except post 1 has some word HTML showing.
    dealerlife.info looks like its up but pretty much empty
    blueray360 looks like a taxomony.php file error again
    lowcarbdietreview I'm not sure but it looks like it can't find some files.
    • [1] reply
    • I'll check that out, thanks for alerting me to it

      Yes this site was a php.bb forum and it was full of porn that I couldn't control so I turned it into a wordpress site, yet to be filled with content

      I replaced this file so I will definitely need some help with this one.

      I may have another go at uploading the files. I have another site that I am in the middle of doing that to, to see if the site will be without errors.

      Once again Roger thank you for your interest and help, it's been invaluable to me

      Cheers
      Viv
  • No problem.
    Interesting things about the blueray360 one is that it looks like the error is in a different point in the taxonomy.php file now.

    Is it possible you have connection problems with your FTP program?
    • [1] reply
    • You could say that I sit and watch as the files are transferring from my Godaddy account and I keep seeing read lines saying can't connect. This is one of the reasons why I needed to shift because Godaddy is sooo slooow it is painful. I will try just doing that one file again. This morning I deleted everything in the folder at Hostgator and transferred everything from Godaddy to my computer and back to Hostgator to see if it was a connectivity problem that was giving me the errors but as I said while I sat there looking at the files transferring down into my computer this message line in red kept showing up saying cannot connect and then you would see the messages that it had and welcoming message etc No probs though going the other way, to Hostgator
      It can take anything up to 4 minutes to get into my database area with Godaddy!
      • [1] reply
  • That might be it then. If it drops and reconnects part way through a file, it might be writing over the part it already downloaded instead of appending on the end.

    Try copying taxonomy.php from a migrated site that is working to blueray360 and see what happens.
    • [1] reply
    • Ok, I will. I didn't realise that you could do that

      Could you give me your advice on this one. I have just redone all the files and the site is still returning an error. Do you think I could do the same thing with this or would that not be an option due to the file type, with this site:

      http://howto-howto.info
  • That looks the same as the low carb site. might or might not be the same error.

    With WordPress (and most CMs / blog based) sites, most of the files are identical.
    The DB / config is different. The theme is different. And the plug-ins are additional.

    Just don't ask me which are which in general. I figure it out by looking at the individual files on the wordpress download.
  • Here's a thought. Many webhost control panels allow you to zip a folder and all it's contents into a single file, and download it that way.

    If GoDaddy lets you do that, use that file to download to your PC, and unzip it there. Any download problems will cause the zip file to be corrupt, which you will then know about.

    Then you can upload from your PC to HostGator.
    • [1] reply
    • Ok, I'll fight my way in there and see if I can find a place to zip up the files and do as you have suggested
  • Still trying to get the folders to open in file manager. If I didn't know better I would say there is something fishy going on! I haven't told my host yet that I am shifting but he may already know I will be so glad to be free of this site.

    This site turned over perfectly: http://www.roiformula.net/ did it 10 minutes ago
  • Hi.

    How's this going?

    I just saw this post

    http://www.warriorforum.com/programm...es-faster.html

    Which gives you a way to zip up all your files if you can't do it via the control panel.
    • [1] reply
    • Hi Roger

      Thanks for checking up on me

      I am 80% there and still smiling, just

      I will check out the info you have alerted me to, thanks for that

      Cheers
      Viv

Next Topics on Trending Feed