News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Error in Profile.php

Started by -=[Vyorel]=-, March 11, 2011, 07:05:12 PM

Previous topic - Next topic

-=[Vyorel]=-

QuoteFatal error: require_once() [function.require]: Failed opening required 'public_html/rss-ro.com/forum/Sources/Profile-Modify.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in public_html/rss-ro.com/forum/Sources/Profile.php on line 450

SMF version: SMF 2.0 RC5
Theme: Anecdota.
Mods:

  • Simple Audio Video Embedder
  • Tidy Child Boards
  • Ad Management
  • Info Center
  • Menu Order
  • Remove Index From Title
  • Google Search Your Site
  • LMGTFY BBcode
  • Menu Buttons
  • Animated Links
  • 'Read the Rules' Link Above Post Button
  • Add security verification to the Login page

Code from Profile.php
// File to include?
if (isset($profile_include_data['file']))
require_once($sourcedir . '/' . $profile_include_data['file']); //line 450



What is the problem?
My mods for SMF - [6].

Arantor

Does Profile-Modify.php exist in the sources directory and is the same permissions as Profile.php?

-=[Vyorel]=-

Quote from: Arantor on March 11, 2011, 07:06:19 PM
is the same permissions as Profile.php?
644 for all files.

Quote from: Arantor on March 11, 2011, 07:06:19 PM
Does Profile-Modify.php exist in the sources directory
Off. Thanks!

Solved!
My mods for SMF - [6].

MrPhil

It sounds like it's trying to use a bad relative path here: [./]public_html/rss-ro.com/forum/Sources/Profile-Modify.php when you are already in .../public_html/rss-ro.com/forum/Sources/Profile.php. That is, it's looking for .../public_html/rss-ro.com/forum/Sources/public_html/rss-ro.com/forum/Sources/Profile-Modify.php, which of course doesn't exist. I would expect something like require('Profile-Modify'); rather than require('public_html/rss-ro.com/forum/Sources/Profile-Modify.php');. If that's what's happening, how in the world did you get a path like public_html/rss-ro.com/forum/Sources in there? Has the code been modified at some point?

Advertisement: