Upload Failed die to incorrect API version

Permalink Browser Info Environment
My ability to upload to S3 has terminated due the API version being set as latest. I get the following message in an "upload failed" box

FB_IMG_1462877581077.jpg
Missing required client configuration options: version: (string) A "version" configuration value is required. Specifying a version constraint ensures that your code will not be affected by a breaking change made to the service. For example, when using Amazon S3, you can lock your API version to "2006-03-01". Your build of the SDK has the following version(s) of "s3": * "2006-03-01" You may provide "latest" to the "version" configuration value to utilize the most recent available API version that your client's API provider can find. Note: Using 'latest' in a production application is not recommended. A list of available API versions can be found on each client's API documentation page:http://docs.aws.amazon.com/aws-sdk-php/v3/api/index.html.... If you are unable to load a specific API version, then you may need to update your copy of the SDK.

Unfortunately I can't see where this can updated in the code. Can you help please?

Type: Ticket
Status: Archived
gordoncWG
View Replies:
gordoncWG replied on at Permalink Reply
gordoncWG
I have been able to ascertain that this issue is being caused by the installation of another package I have created and installed that uses the AWS PHP SDK.

However, I can't work out how to resolve the conflict.

The Amazon S3 package doesn't seem to specify a version to be used anywhere in it's code. Would this resolve the problem?
gordoncWG replied on at Permalink Reply
gordoncWG
I'm afraid I can't work out how to resolve this. Both the package I have created which sets cookies to access private content via AWS Cloudfront and the Storage for Amazon S3 package work fine on their own. However, when my package is installed it causes Storage for Amazon S3 to throw the "version required" error message.

I'm assuming C5 must be encountering some sort of conflict with the SDK in two different packages but I can't work out how to resolve it.

If I was to provide my package zipped could you help please?
Mnkras replied on at Permalink Reply
Mnkras
Does your addon use v2 or v3 of Amazon's SDK?

I think that error only happens in v3 and this addon uses v2.

Mike
gordoncWG replied on at Permalink Reply
gordoncWG
My package uses v3. I don't know if it will work with v2 but could try.

Is there no way C5 can handle one being used for one package and another being used for the other though?
gordoncWG replied on at Permalink Reply
gordoncWG
I've tried to make the package work with v2 of the SDK but I'm getting errors. I'm setting cookies and the code I'm using is for v3 of the SDK. And I can't see code examples for v2.

I'm kind of stuck.
Mnkras replied on at Permalink Reply
Mnkras
Can you send the package over to me? <myusername>@gmail.com

Ill try and take a look, I have a newer version of the package running v3 but its made for c5v8.

The primary issue is that the autoloader is trying to load 2 different versions of the SDK and they don't have different namespaces.

Mike
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.3.0), Block Designer Pro (2.4.0), Breadcrumb Trail Page Links (1.1), Document Library (0.9.4), Formify (1.3.3.3), Global Version List (1.0), Handyman (1.0.11), Package Designer (0.9.3), ProEvents (2.8.4), Quick Tabs (1.0), Responsive Embed (1.0.1), S3 Storage (2.0.2), Set AWS Cloudfront Cookies (1.0.0), 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/aws_cookies_block_v_one/db.xml, blocks/aws_cookies_block_v_one/controller_working2.php, blocks/aws_cookies_block_v_one/controller_not_working3.php, blocks/aws_cookies_block_v_one/controller_working6.php, blocks/aws_cookies_block_v_one/edit.php, blocks/aws_cookies_block_v_one/config.json, blocks/aws_cookies_block_v_one/controller_working4.php, blocks/aws_cookies_block_v_one/controller_not_working1.php, blocks/aws_cookies_block_v_one/controller_working5.php, blocks/aws_cookies_block_v_one/icon.png, blocks/aws_cookies_block_v_one/controller_working7.php, blocks/aws_cookies_block_v_one/controller_not_working2.php, blocks/aws_cookies_block_v_one/controller_working1.php, blocks/aws_cookies_block_v_one/add.php, blocks/aws_cookies_block_v_one/view.php, blocks/aws_cookies_block_v_one/view_working1.php, blocks/aws_cookies_block_v_one/form.php, blocks/aws_cookies_block_v_one/controller_working8.php, blocks/aws_cookies_block_v_one/controller.php, blocks/aws_cookies_block_v_one/controller_working3.php, blocks/aws_cookies_block_v_one/composer.php, blocks/aws_cookies_block_v_one/aws_functions.php, blocks/aws_cookies_block_v_one, 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/aws_cookies_block_v_one/db.xml, blocks/aws_cookies_block_v_one/controller_working2.php, blocks/aws_cookies_block_v_one/controller_not_working3.php, blocks/aws_cookies_block_v_one/controller_working6.php, blocks/aws_cookies_block_v_one/edit.php, blocks/aws_cookies_block_v_one/config.json, blocks/aws_cookies_block_v_one/controller_working4.php, blocks/aws_cookies_block_v_one/controller_not_working1.php, blocks/aws_cookies_block_v_one/controller_working5.php, blocks/aws_cookies_block_v_one/icon.png, blocks/aws_cookies_block_v_one/controller_working7.php, blocks/aws_cookies_block_v_one/controller_not_working2.php, blocks/aws_cookies_block_v_one/controller_working1.php, blocks/aws_cookies_block_v_one/add.php, blocks/aws_cookies_block_v_one/view.php, blocks/aws_cookies_block_v_one/view_working1.php, blocks/aws_cookies_block_v_one/form.php, blocks/aws_cookies_block_v_one/controller_working8.php, blocks/aws_cookies_block_v_one/controller.php, blocks/aws_cookies_block_v_one/controller_working3.php, blocks/aws_cookies_block_v_one/composer.php, blocks/aws_cookies_block_v_one/aws_functions.php, blocks/aws_cookies_block_v_one, 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

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586

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.