jefromcanada
Forum Replies Created
-
@imagely – I agree with you 100% that this error could only be triggered due to a database issue DURING INSTALLATION OF THE PLUGIN. That’s the key phrase. There are several reasons why the database could have been problematic. The point is, if the WordPress site owner eventually figures out what’s wrong with the site and successfully reinstalls your plugin, there is nothing in your code that will REMOVE AN EXISTING ERROR MESSAGE from the “ngg_init_check” record in the options table. Your code does not create a blank “ngg_init_check” record in the options table if things work, and writes an error if it fails. What you should be doing is making sure the error message is cleared out of the options table if the installation works. Alternatively, if you don’t want to do that, you should be checking for a “good” database connection when your plugin is started, rather than relying on a message in the options table that could be months, if not years old.
- This reply was modified 7 years, 1 month ago by jefromcanada.
@imagely – I’ve only begun working with this client within the past week, and I see that his WordPress site indicates there are outstanding updates for “Imagely” (despite the fact I’m using the most recent version of the free plugin). I guess what I’m saying is that the line numbers I specifically refer to may be relative to an older code base.
I’ll probably just respond in a bit more detail to the other post you made to try to explain why I think this is a bug.
And sorry for posting in three places. I started here, then tried to steer @sbiese to my post, and finally, I figured the proper place to post would be in your support forum.
Today, I found the cause and have provided a suggested solution and workaround in this post:
I came across this thread by searching for the same error message that @webtekky posted about. And coincidentally, I’m working on the same project as @webtekky.
I’m writing because I found the cause of the problem, and want to suggest a solution to the plugin author.
The issue is with nggallery.php in the /plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy folder.
On line 68 of the file, within the function start_plugin(), the ‘ngg_init_check’ option is fetched, and based on its value, the error message is generated. Unfortunately, except during plugin installation, the ‘ngg_init_check’ option is never set/verified. Once the error condition gets set (regardless of the reason), there is no opportunity to “reset” it when the issue gets resolved.
So, in the start_plugin() function, I believe you should include the same test condition as was initially coded in lines 90-94 of the install.php module, and if the $nggpictures table can be located, the error flag should be reset.
** EDIT **
Pending a correction to the plugin, I have temporarily removed the message by editing the wp_options table and NULLing out the value associated with the ‘ngg_init_check’ option.
- This reply was modified 7 years, 2 months ago by jefromcanada.
- This reply was modified 7 years, 2 months ago by jefromcanada.
Forum: Reviews
In reply to: [WP Rollback - Rollback Plugins and Themes] The best diagnostic tool everDevin,
I just had occasion to use the WP Rollback plugin again, and I see that version 1.5 has a change log with the plugin’s release date. Thank you for being responsive to user suggestions.
Forum: Reviews
In reply to: [WP Rollback - Rollback Plugins and Themes] The best diagnostic tool everDevin,
I responded immediately to your email, and only now noticed that the response was routed to a “noreply” email address. So, I’ll repost my answer here…
If there is no data point in your database with the release date, you can probably use the date stamp on the .zip file used to do the installation.
Forum: Reviews
In reply to: [Sticky Menu & Sticky Header] So useful – so simpleMark,
I appreciate you replying to my review. I had noticed you make an effort to reply to NEGATIVE reviews (a good policy by the way), but assumed you wouldn’t feel the need to reply to a positive review. So, thanks for that.
When I mentioned needing more documentation for how to find class information, I didn’t intend it to mean that YOU need to supply that documentation. Only that you may choose to mention that most browsers have a means of displaying that information, and leave it to the user to take it from there.
As far as finding a common element on full-sized and mobile sites, I was able to find a common element (the header). Unfortunately, keeping the full header from scrolling on a mobile site leaves precious little room left to display anything else!
Forum: Reviews
In reply to: [WP Migrate Lite - WordPress Migration Made Easy] Doesn't WorkI know this comment is really old. But Pasquale, I wanted to explain something (which you probably have had time to figure out by now). When you install a fresh copy of WordPress, it’s like moving into a new home. It looks plain because you haven’t furnished the place yet. WordPress is made better by installing things like a theme and perhaps some plugins.
These themes and plugins are delivered as programs that are added onto the basic WordPress installation. If you don’t download any third-party themes or plugins, the only thing “missing” to turn a brand new website into a copy of an existing one are the pages and posts. Those are kept in the database – and this plugin makes it easy to migrate that database from an original location to a new location, where you then use a tool like phpAdmin to load the database.
However, that’s all it does. It just prepares databases for migration.
The majority of WordPress sites are not so simple. They contain customized themes, plugins, and possibly media files. Those components of WordPress are not stored in the database, so this plugin does not migrate that information. That’s why, even after migrating the database, you may end up with a site that doesn’t work – because all the other parts have to be moved over using some other method.
I hope that explains it better.
Changing code is something that should only be done by someone who knows what they are doing. If you make a mistake, you can break your site. I am not the author of this plugin, and it was imranulh that found the fix. I will not be responsible for any damage caused by anyone using this fix.
In the file “/wp-content/plugins/easy-facebook-likebox/public/views/feed.php”
replace the lines:
if($cache_unit == ‘minutes’) $cache_unit = 60;
if($cache_unit == ‘hours’) $cache_unit = 60*60;
if($cache_unit == ‘days’) $cache_unit = 60*60*24;with:
if($cache_duration == ‘minutes’) $cache_duration = 60;
if($cache_duration == ‘hours’) $cache_duration = 60*60;
if($cache_duration == ‘days’) $cache_duration = 60*60*24;DISCLAIMER:
This is a temporary fix until the plugin author fixes the underlying problem. If the plugin author issues a patch that does NOT make changes to the feed.php file (because there is technically nothing wrong with this file – the fault lies elsewhere), then this “fix” will actually end up breaking the plugin. You use this patch at your own risk.
The application ID comes from Facebook.
Here’s an article that describes how to get one:
https://help.yahoo.com/kb/SLN18861.htmlKeep in mind that the Application ID is an *optional* item. You don’t need to specify an ID for this Like Box plugin to work.
Forum: Plugins
In reply to: [Easy Social Feed - Social Photos Gallery - Post Feed - Like Box] FYISuch a sad story here…
I had reported the same spelling error and was told that the plugin was originally released with a spelling error. Shortly afterward, another author piggybacked on the success of this plugin and submitted another plugin with the same name (only this time, it was correctly spelled). Meanwhile, WordPress has a policy that two plugins cannot have the same name, so THIS author has to live with the spelling mistake!!!
The changes made to the feed.php file did fix the issue. And, as stated previously, the proper fix would be to alter the widget code. But, altering the widget code carries some issues of its own. Everyone who already used the “broken” version has their database loaded with the “wrong” information, so the process of updating the plugin would need to check whether the database was “correctly” or “incorrectly” configured at the time of applying the patch; and would either swap the fields or leave them as they are.
Good catch! I had informed the plugin author that the cache was not getting wiped (and created a workaround cron job to wipe the cache manually), but hadn’t determined the cause.
I’ve modified the feed.php file on my site (rather than modifying the widget code) and will confirm your discovery.
Of course, the proper solution would be to modify the widget code and leave the feed.php file as it was.
Forum: Plugins
In reply to: [Quick Restaurant Menu] Trouble with Restaurant Menu ItemsSorry to butt in. I’m so involved as forum moderator and volunteer support tech for a few products I really like, I sometimes get carried away and answer questions that weren’t asked of me! It’s good to see you monitor your support forum so closely.
Forum: Plugins
In reply to: [Quick Restaurant Menu] Trouble with Restaurant Menu ItemsOpen the menu (not Menu Items), and scroll down to the menu item you want to modify. Click the Edit icon for the menu item, change the price, and then remember to click the Save Icon (it looks like a diskette).
After you’ve edited the items you wish to update, remember to SAVE the menu.