Getting PHP error when activating a theme on WordPress

Asked By 0 points N/A Posted on -
qa-featured

Hi experts,

I loaded a WordPress blog, but when I tried to activate my theme (Mystique theme), I get a PHP error:

Warning: fopen(/home/***/public_html/blog/wp-content/themes/mystique-extend/lang/.mo) [function.fopen]: failed to open stream: No such file or directory in /home/***/public_html/blog/wp-includes/pomo/streams.php on line 109

I then tried to look in the directory for the documentation, but it does not exist.

Here's what bothers me. I also installed a similar version of WordPress as well as Mystique theme on another machine (Windows 7, XAMPP also installed) and it worked properly; there was no PHP error. I am able to use the Social-Media images on the theme.

Need to solve this. Please help.

SHARE
Answered By 0 points N/A #94982

Getting PHP error when activating a theme on WordPress

qa-featured

Dear Felixthecat,

According to the warning message you received, this error is inside the translate module and the .mo file is a language file. If you are using English language only and you are not going to translate the theme, you may disable this error.

I found an issue related to your post on WordPress support forums and they mentioned that this error will be fixed in the next update. To disable the error message, open the mentioned file "/home/***/public_html/blog/wp-includes/pomo/streams.php" and go to line 109, comment this line and save. Now you will not get this error message again.

Hope this may help you.

Best of luck.

Login/Register to Answer

Related Questions