Title: ruslan.f's Replies | WordPress.org

---

# ruslan.f

  [  ](https://wordpress.org/support/users/ruslanf/)

 *   [Profile](https://wordpress.org/support/users/ruslanf/)
 *   [Topics Started](https://wordpress.org/support/users/ruslanf/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ruslanf/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ruslanf/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ruslanf/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ruslanf/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ruslanf/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Manager] Different "Notice: Undefined index"](https://wordpress.org/support/topic/different-notice-undefined-index/)
 *  Thread Starter [ruslan.f](https://wordpress.org/support/users/ruslanf/)
 * (@ruslanf)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/different-notice-undefined-index/#post-6923568)
 * I fixed it another way
    `if (array_key_exists('password', $package) && $package['
   password'] != '') $lock = 'locked';`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Image Zoom] Deprecated messages](https://wordpress.org/support/topic/deprecated-messages/)
 *  Thread Starter [ruslan.f](https://wordpress.org/support/users/ruslanf/)
 * (@ruslanf)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/deprecated-messages/#post-6180882)
 * with this regexp I don’t see any messages.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Image Zoom] Deprecated messages](https://wordpress.org/support/topic/deprecated-messages/)
 *  Thread Starter [ruslan.f](https://wordpress.org/support/users/ruslanf/)
 * (@ruslanf)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/deprecated-messages/#post-6180877)
 * With new version got this messages
    `Notice: Undefined offset: 11 in /home/host1386731/
   cutetorrent.info/htdocs/www/wp-content/plugins/image-zoom/image-zoom.php on line
   464`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Image Zoom] Deprecated messages](https://wordpress.org/support/topic/deprecated-messages/)
 *  Thread Starter [ruslan.f](https://wordpress.org/support/users/ruslanf/)
 * (@ruslanf)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/deprecated-messages/#post-6180872)
 * Ok i fixed it my self…
    I’m new to php… but know some other programming languages
   xD
 * Just read some docs and here is fix
    replace line 464 with
 *     ```
       return preg_replace_callback(
       						$pattern_img,
       						function ($matches)
       						{
       							return stripslashes('<a '.$matches[2].' href=\"'.$matches[3].$matches[4].'\" class=\"gallery_colorbox\"'.$matches[5].'>'.$matches[6].'<img '.$matches[7].' src=\"'.$matches[8].$matches[9].'\" '.$matches[10].'></a>');
       						},
       						$matches[0]);
       ```
   
 * this actually works but code is not safe. Probably some validations on matches
   array should be done.
    And also you may delete line above `$replacement_img ='
   stripslashes("<a\2href=\"\3\4\" class=\"gallery_colorbox\"\5>\6<img\7src=\"\8\
   9\" \10>\11</a>")';`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Image Zoom] Deprecated messages](https://wordpress.org/support/topic/deprecated-messages/)
 *  Thread Starter [ruslan.f](https://wordpress.org/support/users/ruslanf/)
 * (@ruslanf)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/deprecated-messages/#post-6180866)
 * With new wersion I’ve got
 *     ```
       stripslashes("<a href="//cutetorrent.info/wp-content/uploads/2015/05/2015-05-29_204413.png\""><img class="alignright wp-image-2510 size-medium" src="\"http://cutetorrent.info/wp-content/uploads/2015/05/2015-05-29_204413-300x117.png\"" alt="2015-05-29_204413" width="300" height="117"></a>")
       ```
   
 * insted images.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[qTranslate X] Upgrade from qtranslate plus](https://wordpress.org/support/topic/upgrade-from-qtranslate-plus/)
 *  Thread Starter [ruslan.f](https://wordpress.org/support/users/ruslanf/)
 * (@ruslanf)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/upgrade-from-qtranslate-plus/#post-6180764)
 * Something interesting happend… After I deactivated all plugins and activate them
   back error goes away….

Viewing 6 replies - 1 through 6 (of 6 total)