admin管理员组

文章数量:1334407

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

I tried to install a premium theme called Superb. I'm new to WordPress and I'm having a bit of a problem. I think that it has to do with permission settings, but I'm not sure. This is my situation:

I'm on a Mac running MAMP Pro. I've setup WP on my local machine. When I open my site in a browser, I see the default WordPress page. So far, so good.

I unbundled the Superb zip file and put the directory in wp-content --> themes. I went to WP's dashboard Appearance--> Themes, but Superb was not visible. There was no picture of the theme and no nothing to activate.

So I changed the Superb directory's permissions to Me: Read & write, Everyone: Read only. Now, the Superb theme is visible. I activated the theme.

When I opened the browser, I got these error messages at the top of the page and then the default page styled with the Superb theme:

Warning: include(recaptchalib.php) [function.include]: failed to open stream: Permission denied in /Users/myname/Sites/mysite/wp-content/themes/Superb/uContact/contact.php on line 136

Warning: include() [function.include]: Failed opening ‘recaptchalib.php’ for inclusion (include_path=’.:/Applications/MAMP/bin/php5.2/lib/php’) in /Users/myname/Sites/mysite/wp-content/themes/Superb/uContact/contact.php on line 136

Now, I can't even login into wp-admin and there are lots of warnings as above.

I think that I'm doing something wrong with the permissions. Maybe I made some other idiotic mistake. If someone can give me detailed instructions on how to solve this problem on a Mac, I would be psyched.

Thank you!

-Laxmidi

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

I tried to install a premium theme called Superb. I'm new to WordPress and I'm having a bit of a problem. I think that it has to do with permission settings, but I'm not sure. This is my situation:

I'm on a Mac running MAMP Pro. I've setup WP on my local machine. When I open my site in a browser, I see the default WordPress page. So far, so good.

I unbundled the Superb zip file and put the directory in wp-content --> themes. I went to WP's dashboard Appearance--> Themes, but Superb was not visible. There was no picture of the theme and no nothing to activate.

So I changed the Superb directory's permissions to Me: Read & write, Everyone: Read only. Now, the Superb theme is visible. I activated the theme.

When I opened the browser, I got these error messages at the top of the page and then the default page styled with the Superb theme:

Warning: include(recaptchalib.php) [function.include]: failed to open stream: Permission denied in /Users/myname/Sites/mysite/wp-content/themes/Superb/uContact/contact.php on line 136

Warning: include() [function.include]: Failed opening ‘recaptchalib.php’ for inclusion (include_path=’.:/Applications/MAMP/bin/php5.2/lib/php’) in /Users/myname/Sites/mysite/wp-content/themes/Superb/uContact/contact.php on line 136

Now, I can't even login into wp-admin and there are lots of warnings as above.

I think that I'm doing something wrong with the permissions. Maybe I made some other idiotic mistake. If someone can give me detailed instructions on how to solve this problem on a Mac, I would be psyched.

Thank you!

-Laxmidi

Share Improve this question asked Apr 22, 2011 at 15:50 LaxmidiLaxmidi 9714 gold badges19 silver badges37 bronze badges 3
  • Show us line 136 of the contact.php. – fuxia Commented Apr 22, 2011 at 16:47
  • Hi @toscho, Thank you for the message. The code looks like this: code// Basic init if(!is_admin()) { include 'recaptchalib.php'; } code The line starting "include" is 136. I included a couple extra lines in order to add more context. Thank you. – Laxmidi Commented Apr 22, 2011 at 17:39
  • it looks like it's trying to load that file from your default include path and can't find it, maybe that filename needs to be appended with the themedir? – Milo Commented Apr 22, 2011 at 18:04
Add a comment  | 

4 Answers 4

Reset to default 1

Laxmidi:

You wouldn't FTP to your local installation of WordPress, which is under some directory that you have assigned with MAMP.

Wherever that directory lives, you must unpack your theme.zip folder on your desktop, then move the theme into /wordpress/wp-content/themes

Once you add move your downloaded theme directory into WordPress, you should see the Theme under Dashboard -> Appearance -> Themes, after which you will activate it, then navigate to the local URL and see your WP install working.

All files should be 644 and all folders 755.

Tony Zeoli

First, since you're using a premium Theme, you should first consult the Theme developer's support offerings.

That said, I would try installing the Theme through WordPress, rather than manually:

  1. Delete the existing Theme folder in wp-content\themes`
  2. Go to Dashboard -> Appearance -> Themes, click the Install Themes tab, then the Upload sub-tab.
  3. Upload/install the Theme using the form.

And if that still fails, check your file permissions. I believe \wp-content\ and sub-directories should pretty much all be 755?

Like chip says for premium theme support its always bets to contact the developer, i've not come across one yet who isnt happy to help (maybe im lucky).. little pointer though seeing as your new to wordpress when uploading the theme via the install theme tab be sure that your uploading the actual theme zip, meaning some themes these days are so huge that they can be double or triple archived even

Your include path is missing the current directory .. This is a very common issue that the developer should know. So either fix the include path or replace the include 'recaptchalib.php'; with include './recaptchalib.php'; or include dirname(__FILE__) . '/recaptchalib.php';.

本文标签: Problem Installing a Premium Theme File Permission Issue on a MacLocal Machine