Had it working before - now not so much
Permalink Browser Info Environment
I'm trying to install this on a new site. I get this error:
Warning: file_get_contents(/~inspirq9packages/cu3er/blocks/cu3er/buttonTemplate.xml) [function.file-get-contents]: failed to open stream: No such file or directory in /home2/inspirq9/public_html/packages/cu3er/blocks/cu3er/controller.php on line 378
Warning: file_get_contents(/~inspirq9packages/cu3er/blocks/cu3er/descriptionTemplate.xml) [function.file-get-contents]: failed to open stream: No such file or directory in /home2/inspirq9/public_html/packages/cu3er/blocks/cu3er/controller.php on line 380
Warning: file_get_contents(/~inspirq9packages/cu3er/blocks/cu3er/configTemplate.xml) [function.file-get-contents]: failed to open stream: No such file or directory in /home2/inspirq9/public_html/packages/cu3er/blocks/cu3er/controller.php on line 382
{"aID":"11","arHandle":"Main Contenttop","cID":"1","error":false,"bID":"42"}
Please help me get this working. All folder permissions are set to 777.
Aaron
Warning: file_get_contents(/~inspirq9packages/cu3er/blocks/cu3er/buttonTemplate.xml) [function.file-get-contents]: failed to open stream: No such file or directory in /home2/inspirq9/public_html/packages/cu3er/blocks/cu3er/controller.php on line 378
Warning: file_get_contents(/~inspirq9packages/cu3er/blocks/cu3er/descriptionTemplate.xml) [function.file-get-contents]: failed to open stream: No such file or directory in /home2/inspirq9/public_html/packages/cu3er/blocks/cu3er/controller.php on line 380
Warning: file_get_contents(/~inspirq9packages/cu3er/blocks/cu3er/configTemplate.xml) [function.file-get-contents]: failed to open stream: No such file or directory in /home2/inspirq9/public_html/packages/cu3er/blocks/cu3er/controller.php on line 382
{"aID":"11","arHandle":"Main Contenttop","cID":"1","error":false,"bID":"42"}
Please help me get this working. All folder permissions are set to 777.
Aaron
Type: | Discussion |
---|---|
Status: | New |
Hi,
Don't think it's fixed yet.
I just downloaded the add-on and got the same error
Thanks.
Don't think it's fixed yet.
I just downloaded the add-on and got the same error
Thanks.
If you look a the controller.php file on line 379 where the error is occuring, the latest version looks like this:
$buttonTemplate = strval(file_get_contents(DIR_REL . "/packages/cu3er/blocks/cu3er/buttonTemplate.xml",true));
Notice the forward slash before the "DIR_REL". Whereas the error shown above doesn't have a forward slash before "packages". This is why the error is occuring. If for some reason, the version you have is missing this slash, just pop it in and it should work fine.
JB
$buttonTemplate = strval(file_get_contents(DIR_REL . "/packages/cu3er/blocks/cu3er/buttonTemplate.xml",true));
Notice the forward slash before the "DIR_REL". Whereas the error shown above doesn't have a forward slash before "packages". This is why the error is occuring. If for some reason, the version you have is missing this slash, just pop it in and it should work fine.
JB
Tried it again - new install and everything. When I look at the controller.php file, there is a forward slash before 'packages.'
It just doesn't seem to work.
I'd like it to - my client really likes it. But if I can't get it to work (and I've spent a lot of time on it), it really is of no use to me.
Not to be disrespectful, but as it doesn't seem to work for others either, should it still be in the Marketplace?
It just doesn't seem to work.
I'd like it to - my client really likes it. But if I can't get it to work (and I've spent a lot of time on it), it really is of no use to me.
Not to be disrespectful, but as it doesn't seem to work for others either, should it still be in the Marketplace?
I've troubleshooted those errors extensively and have found that the 'file_get_contents' PHP function can be problematic on some servers, so I have done away with reading an external XML file when the block is saved. This means the function is no longer needed and should work fine for you. I've just updated the block in the marketplace (v1.1.4), so please download it and try again. It should work fine for you.
JB
JB
The new version is working. Thanks for fixing this.
Can you please check if you are using the latest version? If not, please download the latest version and try again.
JB