Unable to upload images to blog post

Permalink Browser Info Environment
Hi There
I have just purchased your blog addon and installer ok. I've installed it on a clone of my live site for the moment. Everything appears to be working ok except uploading images. I get the following error…

Uncaught TypeError: Cannot read property 'src' of undefined
at Object.updateManager (208:575)
at Object.success (208:545)
at j (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at x (jquery.js:5)
at XMLHttpRequest.b (jquery.js:5)
/clone/blog_post/upload Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Hope you can help fix this
J

Type: Pre-Sale
Status: Resolved
View Replies:
C5DK replied on at Permalink Reply 1 Attachment
C5DK
Hi,

First, I'm sorry that you have problems with our package.

Second.
I have been looking at your environment and I can see that your site is standing in the middle of upgrading between concrete5 8.2.0 to 8.2.1. You should make sure that your upgrade process is finished and you are running 8.2.1 with no issues.

About our Blog package in concrete5 8.2.1. Yes our package do break in this version. We have made a quick fix to overcome this but we are working on a totally new major update for 8.2.1+ branch.

What you should do is to:
1. Download attached zip file (C5dkRootList.zip)
2. Unpack the file
3. Upload and overwrite this file in /packages/c5dk_blog/src/C5dkBlog/C5dkRootList.php

And you should be good to go.

If you still have problems uploading images in the blog, you should have a look at your file and folder permissions on your server/installation.

Regards
/Michael
Concrete5 Danmark
JonRimmer replied on at Permalink Reply
Hi Michael
I upgraded site to C5.8.2.1 and updated block but this broke the site and got this message
An unexpected error occurred.
Class C5dk\Blog\C5dkRootList contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Concrete\Core\Search\PermissionableListItemInterface::getPermissionsChecker, Concrete\Core\Search\PermissionableListItemInterface::enablePermissions)
I had avoided upgrading to C5.8.2.1 as I saw this wasn't compatible with your addon. I am just going to reclone the live site and try again. Do you think its anything to do with PHP7.1 am I better dropping to 5.6?

Thanks
Jon
C5DK replied on at Permalink Reply
C5DK
As I wrote, you have to overwrite the file I attached in my former post. This is a quick fix and if you do as described it should work...
JonRimmer replied on at Permalink Reply
Hi Michael
My fault I thought you had sent the whole addon directory when I looked at my download folder and after you pointed out my error I found the file you were talking about.

All up and working now.

Many thanks for your help
Jon
C5DK replied on at Permalink Reply
C5DK
You are very welcome!

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.0
Version Installed - 8.2.1
Database Version - 20170711151953

# concrete5 Packages
C5DK Blog (8.2.0.4), Simple Blog setup (1.0.1), Stack Popover (1.2.7)

# concrete5 Overrides
blocks/express_form/templates/backpain/view.php, blocks/express_form/templates/backpain, blocks/express_form/templates, blocks/express_form, blocks/form/templates/foundation-form/view.php, blocks/form/templates/foundation-form, blocks/form/templates, blocks/form, blocks/autonav/templates/foundation-nav-side.php, blocks/autonav/templates/header_menu.php, blocks/autonav/templates/smartmenu.php, blocks/autonav/templates/foundation-nav.php, blocks/autonav/templates/top_nav_view.php, blocks/autonav/templates/foundation-top.php, blocks/autonav/templates/foundation-nav-right.php, blocks/autonav/templates/zurb.php, blocks/autonav/templates/f_breadcrumbs.php, blocks/autonav/templates/f_top_bar.php, blocks/autonav/templates/foundartion5.php, blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates, blocks/autonav, themes/tenbridgefsixthree/view.php, themes/tenbridgefsixthree/left_sidebar.php, themes/tenbridgefsixthree/left_sidebar_physio.php, themes/tenbridgefsixthree/page_theme.php, themes/tenbridgefsixthree/img/main_img_04.jpg, themes/tenbridgefsixthree/img/meet_richie.jpg, themes/tenbridgefsixthree/img/10bridge-map.jpg, themes/tenbridgefsixthree/img/img_treatments_01_t.jpg, themes/tenbridgefsixthree/img/10bridge_logo.gif, themes/tenbridgefsixthree/img/meet_alex.jpg, themes/tenbridgefsixthree/img/img_physio_02_t.jpg, themes/tenbridgefsixthree/img/img_treatments_01.jpg, themes/tenbridgefsixthree/img/left_link_book_ass.jpg, themes/tenbridgefsixthree/img/10-steps.jpg, themes/tenbridgefsixthree/img/logo_physofirst.jpg, themes/tenbridgefsixthree/img/main_img_05.jpg, themes/tenbridgefsixthree/img/img_treatments_04_t.jpg, themes/tenbridgefsixthree/img/logo_p10.gif, themes/tenbridgefsixthree/img/meet_mike.jpg, themes/tenbridgefsixthree/img/fi-info.svg, themes/tenbridgefsixthree/img/acten-btn.jpg, themes/tenbridgefsixthree/img/img_treatments_03_t.jpg, themes/tenbridgefsixthree/img/left_link_knee_cli.gif, themes/tenbridgefsixthree/img/left_link_knee_doc.gif, themes/tenbridgefsixthree/img/logo_cps.jpg, themes/tenbridgefsixthree/img/logo_pf.jpg, themes/tenbridgefsixthree/img/advert/image-2.jpg, themes/tenbridgefsixthree/img/advert/image-1.png, themes/tenbridgefsixthree/img/advert/10_bridge_Physio.png, themes/tenbridgefsixthree/img/advert/women-stretch.jpg, themes/tenbridgefsixthree/img/advert/man-stretching.jpg, themes/tenbridgefsixthree/img/advert/image-6.jpg, themes/tenbridgefsixthree/img/advert/image-7.jpg, themes/tenbridgefsixthree/img/advert, themes/tenbridgefsixthree/img/img_treatments_03.jpg, themes/tenbridgefsixthree/img/img_physio_01_t.jpg, themes/tenbridgefsixthree/img/left_link_call_back.jpg, themes/tenbridgefsixthree/img/main_img_01.jpg, themes/tenbridgefsixthree/img/left_link_Inch_loss_link.jpg, themes/tenbridgefsixthree/img/logo_charteredsoc.jpg, themes/tenbridgefsixthree/img/img_treatments_02.jpg, themes/tenbridgefsixthree/img/img_physio_01.jpg, themes/tenbridgefsixthree/img/10bridge-10at10.jpg, themes/tenbridgefsixthree/img/logo_hpcxxx.jpg, themes/tenbridgefsixthree/img/disc-clinic.png, themes/tenbridgefsixthree/img/fi-like.svg, themes/tenbridgefsixthree/img/fi-mail.svg, themes/tenbridgefsixthree/img/img_test_owen.jpg, themes/tenbridgefsixthree/img/img_treatments_04.jpg, themes/tenbridgefsixthree/img/img_physio_02.jpg, themes/tenbridgefsixthree/img/img_treatments_02_t.jpg, themes/tenbridgefsixthree/img/meet_mark.jpg, themes/tenbridgefsixthree/img/logo_pis.jpg, themes/tenbridgefsixthree/img/bg_img_faq.png, themes/tenbridgefsixthree/img/meet_ellie.jpg, themes/tenbridgefsixthree/img/main_img_02.jpg, themes/tenbridgefsixthree/img/main_img_03.jpg, themes/tenbridgefsixthree/img/meet_penny.jpg, themes/tenbridgefsixthree/img/power.jpeg, themes/tenbridgefsixthree/img/left_link_call_us.jpg, themes/tenbridgefsixthree/img/img_faq_01.jpg, themes/tenbridgefsixthree/img/fi-bookmark.svg, themes/tenbridgefsixthree/img/bg_test_quote.gif, themes/tenbridgefsixthree/img/fi-home.svg, themes/tenbridgefsixthree/img, themes/tenbridgefsixthree/right_sidebar.php, themes/tenbridgefsixthree/home.php, themes/tenbridgefsixthree/css/style.css, themes/tenbridgefsixthree/css/app.css, themes/tenbridgefsixthree/css/font-awesome.min.css, themes/tenbridgefsixthree/css/stickyfooter.css, themes/tenbridgefsixthree/css/foundation.css, themes/tenbridgefsixthree/css/foundation.min.css, themes/tenbridgefsixthree/css, themes/tenbridgefsixthree/description.txt, themes/tenbridgefsixthree/default.php, themes/tenbridgefsixthree/images/ms-icon-310x310.png, themes/tenbridgefsixthree/images/main_img_04.jpg, themes/tenbridgefsixthree/images/meet_richie.jpg, themes/tenbridgefsixthree/images/10bridge-map.jpg, themes/tenbridgefsixthree/images/ms-icon-144x144.png, themes/tenbridgefsixthree/images/img_treatments_01_t.jpg, themes/tenbridgefsixthree/images/10bridge_logo.gif, themes/tenbridgefsixthree/images/meet_alex.jpg, themes/tenbridgefsixthree/images/img_physio_02_t.jpg, themes/tenbridgefsixthree/images/img_treatments_01.jpg, themes/tenbridgefsixthree/images/left_link_book_ass.jpg, themes/tenbridgefsixthree/images/10-steps.jpg, themes/tenbridgefsixthree/images/logo_physofirst.jpg, themes/tenbridgefsixthree/images/main_img_05.jpg, themes/tenbridgefsixthree/images/img_treatments_04_t.jpg, themes/tenbridgefsixthree/images/logo_p10.gif, themes/tenbridgefsixthree/images/android-icon-144x144.png, themes/tenbridgefsixthree/images/meet_mike.jpg, themes/tenbridgefsixthree/images/acten-btn.jpg, themes/tenbridgefsixthree/images/android-icon-96x96.png, themes/tenbridgefsixthree/images/favicon.ico, themes/tenbridgefsixthree/images/apple-icon-152x152.png, themes/tenbridgefsixthree/images/img_treatments_03_t.jpg, themes/tenbridgefsixthree/images/left_link_knee_cli.gif, themes/tenbridgefsixthree/images/left_link_knee_doc.gif, themes/tenbridgefsixthree/images/logo_cps.jpg, themes/tenbridgefsixthree/images/favicon-96x96.png, themes/tenbridgefsixthree/images/logo_pf.jpg, themes/tenbridgefsixthree/images/apple-icon-60x60.png, themes/tenbridgefsixthree/images/img_treatments_03.jpg, themes/tenbridgefsixthree/images/ms-icon-70x70.png, themes/tenbridgefsixthree/images/apple-icon-120x120.png, themes/tenbridgefsixthree/images/android-icon-48x48.png, themes/tenbridgefsixthree/images/img_physio_01_t.jpg, themes/tenbridgefsixthree/images/android-icon-72x72.png, themes/tenbridgefsixthree/images/android-icon-36x36.png, themes/tenbridgefsixthree/images/left_link_call_back.jpg, themes/tenbridgefsixthree/images/main_img_01.jpg, themes/tenbridgefsixthree/images/left_link_Inch_loss_link.jpg, themes/tenbridgefsixthree/images/logo_charteredsoc.jpg, themes/tenbridgefsixthree/images/img_treatments_02.jpg, themes/tenbridgefsixthree/images/apple-icon-144x144.png, themes/tenbridgefsixthree/images/ms-icon-150x150.png, themes/tenbridgefsixthree/images/img_physio_01.jpg, themes/tenbridgefsixthree/images/apple-icon-114x114.png, themes/tenbridgefsixthree/images/android-icon-192x192.png, themes/tenbridgefsixthree/images/logo_hpcxxx.jpg, themes/tenbridgefsixthree/images/disc-clinic.png, themes/tenbridgefsixthree/images/apple-icon-72x72.png, themes/tenbridgefsixthree/images/img_test_owen.jpg, themes/tenbridgefsixthree/images/img_treatments_04.jpg, themes/tenbridgefsixthree/images/apple-icon.png, themes/tenbridgefsixthree/images/img_physio_02.jpg, themes/tenbridgefsixthree/images/apple-icon-180x180.png, themes/tenbridgefsixthree/images/apple-icon-57x57.png, themes/tenbridgefsixthree/images/img_treatments_02_t.jpg, themes/tenbridgefsixthree/images/idd-button.jpg, themes/tenbridgefsixthree/images/meet_mark.jpg, themes/tenbridgefsixthree/images/logo_pis.jpg, themes/tenbridgefsixthree/images/idd-button.png, themes/tenbridgefsixthree/images/browserconfig.xml, themes/tenbridgefsixthree/images/bg_img_faq.png, themes/tenbridgefsixthree/images/favicon-16x16.png, themes/tenbridgefsixthree/images/meet_ellie.jpg, themes/tenbridgefsixthree/images/main_img_02.jpg, themes/tenbridgefsixthree/images/main_img_03.jpg, themes/tenbridgefsixthree/images/meet_penny.jpg, themes/tenbridgefsixthree/images/left_link_call_us.jpg, themes/tenbridgefsixthree/images/img_faq_01.jpg, themes/tenbridgefsixthree/images/apple-icon-76x76.png, themes/tenbridgefsixthree/images/manifest.json, themes/tenbridgefsixthree/images/bg_test_quote.gif, themes/tenbridgefsixthree/images/favicon-32x32.png, themes/tenbridgefsixthree/images/apple-icon-precomposed.png, themes/tenbridgefsixthree/images, themes/tenbridgefsixthree/fonts/fontawesome-webfont-v=4.6.1.woff, themes/tenbridgefsixthree/fonts/fontawesome-webfont-.eot, themes/tenbridgefsixthree/fonts/fontawesome-webfont-v=4.6.1.eot, themes/tenbridgefsixthree/fonts/glyphicons-halflings-regular.svg, themes/tenbridgefsixthree/fonts/fontawesome-webfont-v=4.6.1.woff2, themes/tenbridgefsixthree/fonts/glyphicons-halflings-regular-.eot, themes/tenbridgefsixthree/fonts/fontawesome-webfont-v=4.6.1.svg, themes/tenbridgefsixthree/fonts/fontawesome-webfont-v=4.6.1.ttf, themes/tenbridgefsixthree/fonts/glyphicons-halflings-regular.woff, themes/tenbridgefsixthree/fonts/glyphicons-halflings-regular.eot, themes/tenbridgefsixthree/fonts, themes/tenbridgefsixthree/elements/footer.php, themes/tenbridgefsixthree/elements/sidebar.php, themes/tenbridgefsixthree/elements/header.php, themes/tenbridgefsixthree/elements, themes/tenbridgefsixthree/full.php, themes/tenbridgefsixthree/thumbnail.png, themes/tenbridgefsixthree/js/vendor/what-input.js, themes/tenbridgefsixthree/js/vendor/foundation.min.js, themes/tenbridgefsixthree/js/vendor/foundation.js, themes/tenbridgefsixthree/js/vendor/jquery.js, themes/tenbridgefsixthree/js/vendor, themes/tenbridgefsixthree/js/sticky_footer.js, themes/tenbridgefsixthree/js/jquery-2.1.4.min.js, themes/tenbridgefsixthree/js/foundation.js, themes/tenbridgefsixthree/js/app.js, themes/tenbridgefsixthree/js, themes/tenbridgefsixthree

# 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

# Server API
litespeed

# PHP Version
7.1.8

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, libxml, litespeed, mbstring, mcrypt, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, timezonedb, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, 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 - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

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.