• Resolved Faldekan

    (@faldekan)


    Hi,

    My site has suddenly started spouting out a particular error message when I try to load various pages:

    ‘Warning: require_once(inc/header.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/fowocaco/public_html/profile.php on line 10

    Fatal error: require_once() [function.require]: Failed opening required ‘inc/header.inc.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/fowocaco/public_html/profile.php on line 10′

    I think this relates to an old installation of Dolphin (boonex.com) I was originally using to build the site before I came over to the wonders of WordPress, but I have no idea why it is suddenly making these requests as, although I have been doing a lot of tweaking with css I don’t *think* I have done anything this significant to cause such a change. I’m loathe to just start deleting the old Dolphin installation for fear of doing more damage!

    If anyone has any ideas that would be great, or would even know where I should start looking for the error.

    Thanks,

    Tom.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hy Tom,

    Can you put the code of profile.php in pastebin and post the link here so i can review your code?
    Or just post line 8 till 12 from the profile.php script here.

    https://pastebin.com/

    From looking at the error the header.inc.php file is not in the right directory ( or maybe it is but has the wrong name).

    Kind regards,

    Larsen

    Thread Starter Faldekan

    (@faldekan)

    Hi Larsen,

    Thanks for the speedy response. I can certainly put the code up, but profile.php is a file for the old Boonex/Dolphin installation so would it help seeing as I am now working on a wordpress site? I have no idea why my wordpress site is suddenly trying to access these other files?

    Hi faldekan,

    Can you try putting all dolphin files in a folder called “old”.

    Make sure there are no dolphen files in the root of your new wordpress installation.

    Kind regards,

    Larsen

    Thread Starter Faldekan

    (@faldekan)

    Hi,

    I’ve moved profile.php and any other files I recognise as being old, and now I get a 404 page. The index page appears ok, as before, but when I click on links to new pages, or type the url in direct, I get the dreaded 404 (before I got the error messages I first posted about). I’ve really broken this site somehow, but I’m sure I was only messing with css.

    The plot thickens…

    Hi,

    Do you use custom permalink settings?
    if so switch to default permalinks settings and save.
    the switch back to your custom setting and press save.

    If that doesn’t work can you provide me with the url of your website?

    Kind regards,

    Larsen

    Thread Starter Faldekan

    (@faldekan)

    Aaah, lightbulb moment! I did change the permalinks because I didn’t like the style of links it was generating! Maybe that is it… However I can’t even log in to wp-admin now as I am getting 404s for that too! Is there any way to change the permalink option from cPanel?

    did you tried site.com/wp-login.php instead of just site.com/wp-admin/

    Here you can see how to change the permalink settings using phpmyadmin
    https://tech.shawnlelle.com/resetting-wordpress-permalinks/

    Let me know if this works.

    Kind regards ,
    Larsen

    Thread Starter Faldekan

    (@faldekan)

    Hi Larsen,

    I’ve just tried your phpmyadmin workaround and my site is back! Thankyou so much!

    This web development malarkey is a steep learning curve!

    Thanks again,

    Tom

    hy tom,

    Glad i could help!

    Can you mark the topic resolved?

    Have a nice day and goodluck with your website!

    Kind regards,

    Larsen

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘strange error message on certain pages’ is closed to new replies.