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

Type: Discussion
Status: New
ConcreteCMS
View Replies: View Best Answer
jb1 replied on at Permalink Reply
jb1
From the error message, it looks like there is a "/" (forward slash) missing in the URL. I'm pretty sure this has been fixed a little while ago.

Can you please check if you are using the latest version? If not, please download the latest version and try again.

JB
maartenfb replied on at Permalink Reply
maartenfb
Hi,
Don't think it's fixed yet.
I just downloaded the add-on and got the same error

Thanks.
jb1 replied on at Permalink Reply
jb1
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
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
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?
jb1 replied on at Permalink Best Answer Reply
jb1
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
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
The new version is working. Thanks for fixing this.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.