This plugin?hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
It’s been over 2 years since this plugin was updated.
Wikipedia must be wrong saying you guys have 1,274 employees…
]]>Hi,
I am migrating my site to php 8.2 and I am facing below deprecation errors with the plugin:
Deprecated: Creation of dynamic property Shutterstock::$shutterstock_ui is deprecated in?/nas/content/live/sitename/wp-content/plugins/shutterstock/includes/class-shutterstock.php?on line?76
Deprecated: Creation of dynamic property Shutterstock_Admin::$shutterstock_ui is deprecated in?/nas/content/live/sitename/wp-content/plugins/shutterstock/admin/class-shutterstock-admin.php?on line?58
Deprecated: Creation of dynamic property Shutterstock_Public::$shutterstock_ui is deprecated in?/nas/content/live/sitename/wp-content/plugins/shutterstock/public/class-shutterstock-public.php?on line?54
Deprecated: Creation of dynamic property Shutterstock_API::$shutterstock is deprecated in?/nas/content/live/sitename/wp-content/plugins/shutterstock/includes/class-shutterstock-api.php?on line?8
Deprecated: Creation of dynamic property Shutterstock_API::$version is deprecated in?/nas/content/live/sitename/wp-content/plugins/shutterstock/includes/class-shutterstock-api.php?on line?9
Deprecated: Creation of dynamic property Shutterstock_Helper::$shutterstock is deprecated in?/nas/content/live/sitename/wp-content/plugins/shutterstock/includes/class-shutterstock-helper.php?on line?5
Deprecated: Creation of dynamic property Shutterstock_Helper::$version is deprecated in?/nas/content/live/sitename/wp-content/plugins/shutterstock/includes/class-shutterstock-helper.php?on line?6
Deprecated: Creation of dynamic property Shutterstock_API::$shutterstock_helper is deprecated in?/nas/content/live/sitename/wp-content/plugins/shutterstock/includes/class-shutterstock-api.php?on line?10
Can someone from plugin support team please look into this and fix it ?
Note: I have hosted my site on WPengine and they will be migrating the site on php 8.2 before 31st October, So I kindly request you to fix it in next update asap.
Thanks,
Kartik Tiwari
When trying to open my site it says “/home/customer/www/luxurylustre.com/public_html/wp-includes/class-wp-dependencies.php” , anyone know what I am required to do by receiving this?
]]>We upgraded to WP 5.8.2 yesterday on all our sites, and now all are reporting the following warning to our Sentry logs:
NOTICE: PHP message: PHP Warning: explode() expects parameter 2 to be string, array given in /var/www/html/public/wp/wp-includes/class.wp-dependencies.php on line 166
The URL in the report was the post editor, so I confirmed in dev that simply opening up a new post editor is enough to trigger the warning.
The stack trace in Sentry had no mention of third party code, so I added some debugging code to see what the value was causing a problem. The print_r() of the value in question was:
Array
(
[0] => shutterstock-block-block-editor
[1] => shutterstock-block-block-editor-shutterstock-ui-css
)
At that point I determined that disabling Shutterstock in the dev environment did stop the warning, however this is an important plugin for our editors and therefore not an option we can use right now. I’m aware that testing up to 5.8.x hasn’t been verified yet, however hopefully this report gets this plugin one step closer to that point.
After further investigation with another of our devs, we identified the cause in shutterstock/public/class-shutterstock-public.php, lines 140-143 in v1.3.7. The args to the register_block_type() is an array of arrays, multiple scripts and styles being added to the block type in question. This is apparently not a supported feature yet per https://github.com/WordPress/gutenberg/issues/14598. I hope all this helps identify a solution.
]]>Hi guys, I have downloaded the plugin and successfully connected it with the API. However, I only see roundabout 1 million images within wordpress – also I cannot access the shutterstock “area” when I’m in a page or post and want to add media.
What’s wrong here?
]]>Our Sentry logging has had a high number of events from the Shutterstock plugin, for this warning:
Warning: array_map(): Expected parameter 2 to be an array, null given
To reproduce, I was able to confirm that the warning happens when I go to ‘License this Image’ after adding an image to a post, and then hitting the ‘License’ button on the modal window. I short-circuited the library code after the line in question to avoid actually attempt to license any images during testing.
The warning occurs on line 157 of class-shutterstock-api.php:
$metadata = array_map(‘sanitize_text_field’, $req_body[‘metadata’]);
Per comments later in the function, the metadata parameter does indeed appear to be optional, as does the search_id parameter which is also not accessed in a safe manner. I recommend a fix similar to how the local_amount value is being checked. I tested that it prevents the warning for the metadata parameter.
Index: includes/class-shutterstock-api.php
===================================================================
--- includes/class-shutterstock-api.php (revision 2529898)
+++ includes/class-shutterstock-api.php (working copy)
@@ -148,14 +148,19 @@
$image_description = sanitize_text_field($req_body['description']);
$contributor_name = sanitize_text_field($req_body['contributorName']);
$media_type = sanitize_text_field($req_body['mediaType']);
- $search_id = sanitize_text_field($req_body['search_id']);
$is_editorial = $media_type === 'editorial';
$width = sanitize_text_field($req_body['width']);
$height = sanitize_text_field($req_body['height']);
- $metadata = array_map('sanitize_text_field', $req_body['metadata']);
+ $search_id = isset($req_body['search_id'])
+ ? sanitize_text_field($req_body['search_id'])
+ : null;
+ $metadata = isset($req_body['metadata'])
+ ? array_map('sanitize_text_field', $req_body['metadata'])
+ : null;
+
$local_amount = isset($req_body['pricePerDownload']['local_amount'])
? sanitize_text_field($req_body['pricePerDownload']['local_amount'])
: 0;
@@ -167,7 +172,6 @@
: $this->api_url. '/images/licenses?subscription_id='. $subscription_id;
$body_key = $is_editorial ? 'editorial' : 'images';
- $body = [];
if ($is_editorial) {
$country = $this->shutterstock_helper->get_editorial_country();
Additionally, PHPStorm suggested removing the redundant $body = []; line, as it is defined on either of the halves of the following if/else statement, making the initial definition redundant.
]]>When this plugin is active Screen Options and Help buttons on every admin page is not working. Nothing happens on clock, except the opposite button disappears. Expecting the hidden panel to open as normal.
Break basic core WordPress functionality. Please fix ASAP.
]]>Getting this error message when I navigate to Media > Shutterstock from wordpress wp-admin.
What’s wrong?
]]>