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!

Type: Ticket
Status: Archived
gordoncWG
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Where do you get this error? At all pages or just some pages? Also, can you make a screenshot of that, maybe I can see some more information about this error. It does look like it's installed though, but I haven't got all the information I need just yet.

Kind regards,

Ramon
gordoncWG replied on at Permalink Reply 5 Attachments
gordoncWG
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 .
ramonleenders replied on at Permalink Reply
ramonleenders
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
gordoncWG replied on at Permalink Reply 1 Attachment
gordoncWG
Yes the folder exists. See the zip attached.

The block has been moved from application/block folder.
ramonleenders replied on at Permalink Reply
ramonleenders
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
gordoncWG replied on at Permalink Reply
gordoncWG
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?
ramonleenders replied on at Permalink Reply
ramonleenders
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...
gordoncWG replied on at Permalink Reply
gordoncWG
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
ramonleenders replied on at Permalink Reply
ramonleenders
The error occurs when installing and it does not install the package? Or is the package installed and you get errors afterwards too?
gordoncWG replied on at Permalink Reply
gordoncWG
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.
gordoncWG replied on at Permalink Reply
gordoncWG
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.
ramonleenders replied on at Permalink Reply
ramonleenders
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!
gordoncWG replied on at Permalink Reply
gordoncWG
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.
ramonleenders replied on at Permalink Reply
ramonleenders
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... :(
ramonleenders replied on at Permalink Reply
ramonleenders
Attach the full package (the "Trevor"/"Fred" example, as that does the trick) to the thread I mean, with the issues you're having!
gordoncWG replied on at Permalink Reply 1 Attachment
gordoncWG
Sure. Please see attached.

If I'm stumping your goodself I'm concerned!

Thanks
Gordon
ramonleenders replied on at Permalink Reply
ramonleenders
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!
ramonleenders replied on at Permalink Reply
ramonleenders
Let me know when you created the thread/discussion on the forum! :)
gordoncWG replied on at Permalink Reply
gordoncWG
I will when I get a chance. Hopefully later today but might not manage till Monday.

Thanks
Gordon
gordoncWG replied on at Permalink Reply
gordoncWG
Hi Ramon

I've put a forum post here

https://www.concrete5.org/community/forums/customizing_c5/block-inst...

Thanks
Gordon
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
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.

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.8
Version Installed - 5.7.5.8
Database Version - 20160412000000

# concrete5 Packages
Add Multiple Pages (1.0), Block Designer (2.2.3), Block Designer Pro (2.4.0), Breadcrumb Trail Page Links (1.1), Document Library (0.9.4), Formify (1.3.3.1), Global Version List (1.0), Handyman (1.0.11), HTML+PHP Code Block (1.0.1), Package Designer (0.9.3), ProEvents (2.8.4), Quick Tabs (1.0), Responsive Embed (1.0.1), S3 Storage (2.0.2), Spacer (0.9.3), Supermint Theme (3.3.2), Vivid Carousel (1.0.1), Vivid Simple Accordion (1.0.1).

# concrete5 Overrides
blocks/issue_recored_v_one_point_fifteen/db.xml, blocks/issue_recored_v_one_point_fifteen/fonts/glyphicons-halflings-regular.ttf, blocks/issue_recored_v_one_point_fifteen/fonts/glyphicons-halflings-regular.woff, blocks/issue_recored_v_one_point_fifteen/fonts/glyphicons-halflings-regular.eot, blocks/issue_recored_v_one_point_fifteen/fonts/glyphicons-halflings-regular.svg, blocks/issue_recored_v_one_point_fifteen/fonts, blocks/issue_recored_v_one_point_fifteen/css_form/bootstrap.fonts.css, blocks/issue_recored_v_one_point_fifteen/css_form/repeatable-ft.form.css, blocks/issue_recored_v_one_point_fifteen/css_form/bootstrap-datetimepicker.min.css, blocks/issue_recored_v_one_point_fifteen/css_form, blocks/issue_recored_v_one_point_fifteen/edit.php, blocks/issue_recored_v_one_point_fifteen/config.json, blocks/issue_recored_v_one_point_fifteen/icon.png, blocks/issue_recored_v_one_point_fifteen/add.php, blocks/issue_recored_v_one_point_fifteen/view.php, blocks/issue_recored_v_one_point_fifteen/auto.js, blocks/issue_recored_v_one_point_fifteen/form.php, blocks/issue_recored_v_one_point_fifteen/js_form/handlebars-helpers.js, blocks/issue_recored_v_one_point_fifteen/js_form/bootstrap.min.js, blocks/issue_recored_v_one_point_fifteen/js_form/handlebars-v4.0.4.js, blocks/issue_recored_v_one_point_fifteen/js_form/moment.js, blocks/issue_recored_v_one_point_fifteen/js_form/html.sortable.min.js, blocks/issue_recored_v_one_point_fifteen/js_form/bootstrap-datetimepicker.min.js, blocks/issue_recored_v_one_point_fifteen/js_form, blocks/issue_recored_v_one_point_fifteen/controller.php, blocks/issue_recored_v_one_point_fifteen/composer.php, blocks/issue_recored_v_one_point_fifteen, blocks/mailto_v_three/db.xml, blocks/mailto_v_three/css_form/repeatable-ft.form.css, blocks/mailto_v_three/css_form, blocks/mailto_v_three/edit.php, blocks/mailto_v_three/config.json, blocks/mailto_v_three/icon.png, blocks/mailto_v_three/add.php, blocks/mailto_v_three/view.php, blocks/mailto_v_three/auto.js, blocks/mailto_v_three/form.php, blocks/mailto_v_three/js_form/handlebars-helpers.js, blocks/mailto_v_three/js_form/handlebars-v4.0.4.js, blocks/mailto_v_three/js_form/html.sortable.min.js, blocks/mailto_v_three/js_form, blocks/mailto_v_three/controller.php, blocks/mailto_v_three/composer.php, blocks/mailto_v_three, blocks/drawing_record_v_one_point_seven_production/db.xml, blocks/drawing_record_v_one_point_seven_production/fonts/glyphicons-halflings-regular.ttf, blocks/drawing_record_v_one_point_seven_production/fonts/glyphicons-halflings-regular.woff, blocks/drawing_record_v_one_point_seven_production/fonts/glyphicons-halflings-regular.eot, blocks/drawing_record_v_one_point_seven_production/fonts/glyphicons-halflings-regular.svg, blocks/drawing_record_v_one_point_seven_production/fonts, blocks/drawing_record_v_one_point_seven_production/css_form/bootstrap.fonts.css, blocks/drawing_record_v_one_point_seven_production/css_form/repeatable-ft.form.css, blocks/drawing_record_v_one_point_seven_production/css_form/bootstrap-datetimepicker.min.css, blocks/drawing_record_v_one_point_seven_production/css_form, blocks/drawing_record_v_one_point_seven_production/edit.php, blocks/drawing_record_v_one_point_seven_production/config.json, blocks/drawing_record_v_one_point_seven_production/icon.png, blocks/drawing_record_v_one_point_seven_production/add.php, blocks/drawing_record_v_one_point_seven_production/view.php, blocks/drawing_record_v_one_point_seven_production/auto.js, blocks/drawing_record_v_one_point_seven_production/form.php, blocks/drawing_record_v_one_point_seven_production/js_form/handlebars-helpers.js, blocks/drawing_record_v_one_point_seven_production/js_form/bootstrap.min.js, blocks/drawing_record_v_one_point_seven_production/js_form/handlebars-v4.0.4.js, blocks/drawing_record_v_one_point_seven_production/js_form/moment.js, blocks/drawing_record_v_one_point_seven_production/js_form/html.sortable.min.js, blocks/drawing_record_v_one_point_seven_production/js_form/bootstrap-datetimepicker.min.js, blocks/drawing_record_v_one_point_seven_production/js_form, blocks/drawing_record_v_one_point_seven_production/controllerold.php, blocks/drawing_record_v_one_point_seven_production/controller.php, blocks/drawing_record_v_one_point_seven_production/composer.php, blocks/drawing_record_v_one_point_seven_production, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, blocks/issue_recored_v_one_point_fifteen/db.xml, blocks/issue_recored_v_one_point_fifteen/fonts/glyphicons-halflings-regular.ttf, blocks/issue_recored_v_one_point_fifteen/fonts/glyphicons-halflings-regular.woff, blocks/issue_recored_v_one_point_fifteen/fonts/glyphicons-halflings-regular.eot, blocks/issue_recored_v_one_point_fifteen/fonts/glyphicons-halflings-regular.svg, blocks/issue_recored_v_one_point_fifteen/fonts, blocks/issue_recored_v_one_point_fifteen/css_form/bootstrap.fonts.css, blocks/issue_recored_v_one_point_fifteen/css_form/repeatable-ft.form.css, blocks/issue_recored_v_one_point_fifteen/css_form/bootstrap-datetimepicker.min.css, blocks/issue_recored_v_one_point_fifteen/css_form, blocks/issue_recored_v_one_point_fifteen/edit.php, blocks/issue_recored_v_one_point_fifteen/config.json, blocks/issue_recored_v_one_point_fifteen/icon.png, blocks/issue_recored_v_one_point_fifteen/add.php, blocks/issue_recored_v_one_point_fifteen/view.php, blocks/issue_recored_v_one_point_fifteen/auto.js, blocks/issue_recored_v_one_point_fifteen/form.php, blocks/issue_recored_v_one_point_fifteen/js_form/handlebars-helpers.js, blocks/issue_recored_v_one_point_fifteen/js_form/bootstrap.min.js, blocks/issue_recored_v_one_point_fifteen/js_form/handlebars-v4.0.4.js, blocks/issue_recored_v_one_point_fifteen/js_form/moment.js, blocks/issue_recored_v_one_point_fifteen/js_form/html.sortable.min.js, blocks/issue_recored_v_one_point_fifteen/js_form/bootstrap-datetimepicker.min.js, blocks/issue_recored_v_one_point_fifteen/js_form, blocks/issue_recored_v_one_point_fifteen/controller.php, blocks/issue_recored_v_one_point_fifteen/composer.php, blocks/issue_recored_v_one_point_fifteen, blocks/mailto_v_three/db.xml, blocks/mailto_v_three/css_form/repeatable-ft.form.css, blocks/mailto_v_three/css_form, blocks/mailto_v_three/edit.php, blocks/mailto_v_three/config.json, blocks/mailto_v_three/icon.png, blocks/mailto_v_three/add.php, blocks/mailto_v_three/view.php, blocks/mailto_v_three/auto.js, blocks/mailto_v_three/form.php, blocks/mailto_v_three/js_form/handlebars-helpers.js, blocks/mailto_v_three/js_form/handlebars-v4.0.4.js, blocks/mailto_v_three/js_form/html.sortable.min.js, blocks/mailto_v_three/js_form, blocks/mailto_v_three/controller.php, blocks/mailto_v_three/composer.php, blocks/mailto_v_three, blocks/drawing_record_v_one_point_seven_production/db.xml, blocks/drawing_record_v_one_point_seven_production/fonts/glyphicons-halflings-regular.ttf, blocks/drawing_record_v_one_point_seven_production/fonts/glyphicons-halflings-regular.woff, blocks/drawing_record_v_one_point_seven_production/fonts/glyphicons-halflings-regular.eot, blocks/drawing_record_v_one_point_seven_production/fonts/glyphicons-halflings-regular.svg, blocks/drawing_record_v_one_point_seven_production/fonts, blocks/drawing_record_v_one_point_seven_production/css_form/bootstrap.fonts.css, blocks/drawing_record_v_one_point_seven_production/css_form/repeatable-ft.form.css, blocks/drawing_record_v_one_point_seven_production/css_form/bootstrap-datetimepicker.min.css, blocks/drawing_record_v_one_point_seven_production/css_form, blocks/drawing_record_v_one_point_seven_production/edit.php, blocks/drawing_record_v_one_point_seven_production/config.json, blocks/drawing_record_v_one_point_seven_production/icon.png, blocks/drawing_record_v_one_point_seven_production/add.php, blocks/drawing_record_v_one_point_seven_production/view.php, blocks/drawing_record_v_one_point_seven_production/auto.js, blocks/drawing_record_v_one_point_seven_production/form.php, blocks/drawing_record_v_one_point_seven_production/js_form/handlebars-helpers.js, blocks/drawing_record_v_one_point_seven_production/js_form/bootstrap.min.js, blocks/drawing_record_v_one_point_seven_production/js_form/handlebars-v4.0.4.js, blocks/drawing_record_v_one_point_seven_production/js_form/moment.js, blocks/drawing_record_v_one_point_seven_production/js_form/html.sortable.min.js, blocks/drawing_record_v_one_point_seven_production/js_form/bootstrap-datetimepicker.min.js, blocks/drawing_record_v_one_point_seven_production/js_form, blocks/drawing_record_v_one_point_seven_production/controllerold.php, blocks/drawing_record_v_one_point_seven_production/controller.php, blocks/drawing_record_v_one_point_seven_production/composer.php, blocks/drawing_record_v_one_point_seven_production, blocks/aws_cloudfront_cookies/db.xml, blocks/aws_cloudfront_cookies/edit.php, blocks/aws_cloudfront_cookies/config.json, blocks/aws_cloudfront_cookies/icon.png, blocks/aws_cloudfront_cookies/add.php, blocks/aws_cloudfront_cookies/view.php, blocks/aws_cloudfront_cookies/form.php, blocks/aws_cloudfront_cookies/controller.php, blocks/aws_cloudfront_cookies/composer.php, blocks/aws_cloudfront_cookies, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.18 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4

# Server API
cgi-fcgi

# PHP Version
5.5.34

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SourceGuardian, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, Zend OPcache, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 105M
sql.safe_mode - Off
upload_max_filesize - 105M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

Hide Post Content

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

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.