Error when creating package
Permalink Browser Info Environment
I'm getting the following message on clicking to create my package.
An unexpected error occurred.
Class '\Concrete\Block\AwsCloudfrontCookies\Controller' not found
The block is one created by Block Designer and is sat "awaiting installation" in the Block Types list. The block hasn't been modified in any way outside of the Block Designer.
both of the directories requiring 777 permissions have been set.
Help please!
An unexpected error occurred.
Class '\Concrete\Block\AwsCloudfrontCookies\Controller' not found
The block is one created by Block Designer and is sat "awaiting installation" in the Block Types list. The block hasn't been modified in any way outside of the Block Designer.
both of the directories requiring 777 permissions have been set.
Help please!
Type: | Ticket |
---|---|
Status: | Archived |
Hi Ramon
That message was coming up when setting the package install to direct. If I don't install directly it will create the package but when I then go to the extend page and attempt to install the package the error comes up.
Please see attached screenshots .
That message was coming up when setting the package install to direct. If I don't install directly it will create the package but when I then go to the extend page and attempt to install the package the error comes up.
Please see attached screenshots .
Does the directory /packages/aws_cloudfront_cookies exist? Could you possible email me that or DM me that? I've just tried creating a package with a block type, and have no issues. For some reason, your block type's namespace doesn't get changed. Perhaps it's some issue with the block, but that I do not know. You can see the block still under application/blocks, or has that been moved to /packages/aws_cloudfront_cookies/blocks?
Kind regards,
Ramon
Kind regards,
Ramon
Yes the folder exists. See the zip attached.
The block has been moved from application/block folder.
The block has been moved from application/block folder.
OK, I can not detect anything wrong on my end. What I did was just install the package you send me, and it's working. The files look good too.
After that I uninstalled, moved the block to application/blocks and edited the namespace. Loaded the config again, removed the complete package and direct installed it upon making the package. Went fine too.
What I suspect is that application/blocks/aws_cloudfront_cookies still exists. Is that correct? If so, that should have been deleted/moved... Can you confirm that?
Kind regards,
Ramon
After that I uninstalled, moved the block to application/blocks and edited the namespace. Loaded the config again, removed the complete package and direct installed it upon making the package. Went fine too.
What I suspect is that application/blocks/aws_cloudfront_cookies still exists. Is that correct? If so, that should have been deleted/moved... Can you confirm that?
Kind regards,
Ramon
It definitely doesn't exist in the application/blocks directory. The only blocks in there are four others created by block designer which are working just fine.
Perhaps a database thing?
Perhaps a database thing?
Can you uninstall the package and see what happens if you NOT direct install, but first create the package and then install it (by navigation to "Extend concrete5" and hit install)? For some reason, the class concrete5 is looking for (\Concrete\Block\AwsCloudfrontCookies\Controller) makes no sense...
Hi Ramon
I'd already tried this per the above. It doesn't matter if you direct install or leave uninstalled and add the package as you would any other package. The error message occurs for both install methods.
Thanks
Gordon
I'd already tried this per the above. It doesn't matter if you direct install or leave uninstalled and add the package as you would any other package. The error message occurs for both install methods.
Thanks
Gordon
The error occurs when installing and it does not install the package? Or is the package installed and you get errors afterwards too?
The error message comes up when installing. It does however appear to have installed the package but the block in the package is not shown as installed or available for use.
I can't be certain but prior to installing package designer there may have been a block with the same name that had been uninstalled and deleted.
On the basis this had been uninstalled and its folder deleted I wouldn't have thought this would make any difference but the information may be relevant to you.
On the basis this had been uninstalled and its folder deleted I wouldn't have thought this would make any difference but the information may be relevant to you.
If you want to be certain, just rename the block and try again. I have absolutely no idea currently what this could be. Both installing and generating go fine on my install. For some reason, your install is looking for a "core" block (which should be in concrete/blocks/), seeing its class name... Beats me why though!
It doesn't make any difference. I just ran though the process again.
I made a block called "Fred". Left it uninstalled.
I made a package called "Trevor" and added Fred to it. I did not use direct install.
The package was created without issue.
I then installed the package called "Trevor" and got the same error message. The Block named "Fred" could not be found and Fred isn't listed as an installed block.
I made a block called "Fred". Left it uninstalled.
I made a package called "Trevor" and added Fred to it. I did not use direct install.
The package was created without issue.
I then installed the package called "Trevor" and got the same error message. The Block named "Fred" could not be found and Fred isn't listed as an installed block.
Can you perhaps make a thread on the forum with the "Fred" example, which doesn't work either? This seems like an environment issues of some sort, as I tried with both 5.7.5.6 and 5.7.5.8 (which you should be on), and both work perfect. No problems, no issues, anywhere. I can bring that thread up on Slack and try and get some others to work from there. Seems I can't handle this issue on my own... :(
Attach the full package (the "Trevor"/"Fred" example, as that does the trick) to the thread I mean, with the issues you're having!
Sure. Please see attached.
If I'm stumping your goodself I'm concerned!
Thanks
Gordon
If I'm stumping your goodself I'm concerned!
Thanks
Gordon
I meant, add it to a new thread/discussion on the forum:
https://www.concrete5.org/community/forums...
State what problems you're having, what concrete5 version and what environment (maybe locally on Windows, live on Ubuntu or whatever). I can then send that very discussion to other people too, that's more open and read than the support tickets of Add-Ons.
I may have been a bit unclear about that, sorry!
https://www.concrete5.org/community/forums...
State what problems you're having, what concrete5 version and what environment (maybe locally on Windows, live on Ubuntu or whatever). I can then send that very discussion to other people too, that's more open and read than the support tickets of Add-Ons.
I may have been a bit unclear about that, sorry!
Let me know when you created the thread/discussion on the forum! :)
I will when I get a chance. Hopefully later today but might not manage till Monday.
Thanks
Gordon
Thanks
Gordon
Hi Ramon
I've put a forum post here
https://www.concrete5.org/community/forums/customizing_c5/block-inst...
Thanks
Gordon
I've put a forum post here
https://www.concrete5.org/community/forums/customizing_c5/block-inst...
Thanks
Gordon
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Kind regards,
Ramon