Quantcast Before/After Pictures plugin updated for WordPress 3.4.2+ [DOWNLOAD] - digitalFAQ Forum
Go Back    Forum > Digital Publishing / Web Sites > Website and Server Troubleshooting

Reply
 
LinkBack Thread Tools
  #1  
09-26-2012, 10:31 PM
kpmedia's Avatar
kpmedia kpmedia is offline
Site Staff | Web Hosting, Photo
 
Join Date: Feb 2004
Posts: 4,241
Thanked 354 Times in 332 Posts
Before/After Pictures Update:

A lot of popular WordPress plugins have not been properly updated for several years now, and contain deprecated code. While the plugin may seem "fine" when its activated in wp-admin, deprecated code often means that it's not functioning properly. This tends to only be noticed when you enable debug mode in the wp-config.php file.

Before/After Pictures gives the following error when activated:
Code:
Notice: has_cap was called with an argument that is deprecated  since version 2.0! Usage of user levels by plugins and themes is  deprecated. Use roles and capabilities instead. in  X:\...\wp-includes\functions.php on line 2722
Notice: has_cap was called with an argument that is deprecated  since version 2.0! Usage of user levels by plugins and themes is  deprecated. Use roles and capabilities instead. in  X:\...\wp-includes\functions.php on line 2722
This refers to permissions based on user levels (old, wrong) vs permissions based on capabilities (new, correct).

Where to Download ?

You can either download our ready-to-use files...

How / Where to Download the Files?
You'll find the attached file downloads at the bottom of this top post. Files are provided for the convenience of our members. To get download access, simply join the forum as either a Free Member or Premium Member. We don't send spam or sell your email addresses. If you're not sure what to do with .zip or .rar files, see this help post.


What Was Changed ?

... or you can make the edits yourself.

Line 133 of beforeafterpic.php refers to user level 1:
Code:
add_options_page("Before/After-Pictures", "Before/After-Pictures", 1, "Before/After-Pictures", "beforeafterpics_admin");
It needs to be changed to reflect an admin capability like activate_plugins():
Code:
add_options_page("Before/After-Pictures", "Before/After-Pictures", 'activate_plugins', "Before/After-Pictures", "beforeafterpics_admin");
And that's it.

________


Need a good web host? — Read our 2018 Review of the Best Web Hosts
Quite often, problems with web sites are caused by having a rotten web host. Worse yet, many hosts try to blame you (the customer) for the problems! So dump that lousy company. Say goodbye to slow sites, unresponsive support techs, and downtime. Find yourself a new host today. Whether you need shared, reseller, VPS, semi-dedicated, cloud, or dedicated hosting, something on our list should be a good upgrade for you.



Attached Files
File Type: rar beforeafter-pictures.rar (818.6 KB, 3 downloads)

- Did my advice help you? Then become a Premium Member and support this site.
- Please Like Us on Facebook | Follow Us on Twitter

- Need a good web host? Ask me for help! Get the shared, VPS, semi-dedicated, cloud, or reseller you need.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure WordPress plugin updated for WordPress 3.4.2+ [DOWNLOAD] kpmedia Website and Server Troubleshooting 0 09-26-2012 06:50 PM
Configurable Tag Cloud plugin updated for WordPress 3.4.2+ [DOWNLOAD] kpmedia Website and Server Troubleshooting 0 09-26-2012 03:25 AM
List of WordPress plugins updated for WP 3.4.2+ [DOWNLOADS] kpmedia Website and Server Troubleshooting 1 09-26-2012 02:10 AM
Advertising Manager plugin updated for WordPress 3.4.2+ [DOWNLOAD] kpmedia Website and Server Troubleshooting 0 09-26-2012 12:42 AM
Admin Favicon plugin updated for WordPress 3.4.2+ [DOWNLOAD] kpmedia Website and Server Troubleshooting 0 09-25-2012 04:08 AM

Thread Tools



 
All times are GMT -5. The time now is 03:52 PM