ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Member templates errors

August 19, 2008 3:39pm

Subscribe [3]
  • #1 / Aug 19, 2008 3:39pm

    SFU Surrey

    61 posts

    I am having some problems with the member templates.

    For example when I try to go to the member/login/ page, I get this error:


    Warning: _load_element(../themes/profile_themes/default/profile_theme.php) [function.-load-element]: failed to open stream: No such file or directory in /data/1/0/33/47/33047/user/33004/htdocs/mansys/modules/member/mod.member.php on line 2191

    Warning: _load_element() [function.include]: Failed opening ‘../themes/profile_themes/default/profile_theme.php’ for inclusion (include_path=’.:/usr/services/vux/lib/php’) in /data/1/0/33/47/33047/user/33004/htdocs/mansys/modules/member/mod.member.php on line 2191

    Fatal error: Cannot instantiate non-existent class: profile_theme in /data/1/0/33/47/33047/user/33004/htdocs/mansys/modules/member/mod.member.php on line 2196

  • #2 / Aug 19, 2008 5:06pm

    Ingmar

    29245 posts

    The profile file themes appear to be missing. Check the /themes/profile_themes/default folder, or you could simply upload a new “default” themes folder. If that doesn’t work, try using a full server path in your theme folder location settings, and verify that the permissions on the file are such that PHP can read them (typically 755 for directories, 644 for files).

  • #3 / Aug 19, 2008 7:01pm

    SFU Surrey

    61 posts

    The profile theme is still there. I’ve tried uploading another copy, and I’ve also checked the permissions. Still no luck.

  • #4 / Aug 19, 2008 7:20pm

    Sue Crocker

    26054 posts

    What might be happening is some sort of open_basedir problem.

    Are all of your templates stored in the /themes folder(s)?

  • #5 / Aug 20, 2008 5:55am

    SFU Surrey

    61 posts

    I remember I had to move my cp_themes folder under the system folder. I can’t remember why I had to do this though. Could this be the reason, is there a fix ?

  • #6 / Aug 20, 2008 6:10am

    Sue Crocker

    26054 posts

    The workaround is to move your themes folder inside the system directory. There probably is some sort of question you can ask your host if this doesn’t work for you.

  • #7 / Aug 21, 2008 1:39am

    SFU Surrey

    61 posts

    Do I need to do anything else to get the system to recognize the themes folder if I put it in the system directory? I tried moving them there, I don’t get the errors anymore, but nothing shows up on the page.

  • #8 / Aug 21, 2008 5:13pm

    SFU Surrey

    61 posts

    I have been told by my server, the following:

    Php’s open_basedir protection prevents users from opening files outside of their home directory with php scripts. You can use this function to select which accounts cannot open files outside of their home directory when using php scripts. This is an important security feature as it will prevent users from being able to access system or other users files with php scripts. It will most importantly stop malicious scripts from being able to access a lot of important information.

    Please note that our servers are locked down to protect all of our customers. We will not in any circumstance make any changes to the way the system performs.


    So I was just wondering if there was any other way to make these files work around this situation. I do hope so!

  • #9 / Aug 21, 2008 8:42pm

    Sue Crocker

    26054 posts

    Did you change your settings to the Themes directory to reflect its in the /system/themes directory instead?

  • #10 / Aug 21, 2008 8:50pm

    SFU Surrey

    61 posts

    No I didn’t. How do I do this?

  • #11 / Aug 21, 2008 9:01pm

    Sue Crocker

    26054 posts

    See the screen shot below:

  • #12 / Aug 21, 2008 9:53pm

    SFU Surrey

    61 posts

    Thanks, I’ve changed these paths, but it seems I am getting the errors again. Does not seem to work. Is there anything else I can do? or is the only fix to change servers?

  • #13 / Aug 22, 2008 1:12pm

    Sue Crocker

    26054 posts

    Changing the paths should work.

    Personally, I’d recommend getting another host.

    Are you certain the paths are accurate?

  • #14 / Aug 22, 2008 3:09pm

    SFU Surrey

    61 posts

    Unfortunately yes. Thats a real bummer.

  • #15 / Aug 22, 2008 4:01pm

    Ingmar

    29245 posts

    Yes, I concur. That said, Sue gives good advice here: you might be better off somewhere else.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases