Same here, followed instructions, entered the url to the Mage.php file, broke the entire website. Managed to get it working by changing the line of code in functions.php to
if(!function_exists('__')) { function __() { return Mage::app()->getTranslator()->translate(func_get_args()); } }
Steps 1 – 6 of the instructions outline the steps to do exactly that…
Look again, code is a bit different. 🙂
Can’t see a difference! What is it?
if(!function_exists('__'))
{
function __()
{
return Mage::app()->getTranslator()->translate(func_get_args()); }
}
if(!function_exists('__'))
{
function __()
{
function __() { return Mage::app()->getTranslator()->translate(func_get_args()); }
}
}
Where are you seeing this? That’s not what it says on the instructions: http://magentowp.com/documentation/installation/
I know I had to change it
You changed it to the second block of code you pasted? Because that code is invalid.
Yes I did, I dunno what else to do because it broke the entire site and the plugin page. Right now the plugin works, I get a green Mage.php found message and I just purchased the Shortcodes & Widgets and activated it.
The line of code on the instructions didn’t work, maybe you have a solution for me?
Can you email me your functions.php file?
Of course, what’s your e-mail address?
Send it to sales@magentowp.com – Cheers.
I am having the same problem, and I would be interested to know if this change is okay to use.