Benjamin
Forum Replies Created
-
Sorry, ik leer nog steeds Nederlands en ben niet zo goed.
Dit is een vreemd probleem waar we nog niet eerder van hebben gehoord. Dit kan een probleem zijn met een andere plug-in: kun je je andere plug-ins deactiveren en kijken of deze nog steeds traag is? Een korte verandering van thema kan helpen bij het vaststellen van conflicten.
Er zijn de laatste tijd wijzigingen aangebracht in jQuery, zorg ervoor dat uw WordPress en NextGEN beide up-to-date zijn.
Is it possible that you are using PHP 8.0? We’ve just today released NextGEN 3.5.0 which addresses several PHP 8 compatibility issues, including one that could cause image uploads to fail.
If you’re still on PHP 5.6 – 7, does anything appear if you activate your browser developer tools and inspect the image upload request response?
When NextGEN is first activated we display a notification encouraging people to watch a short video on how to create and display galleries, it appears in a popup via jQuery which is provided by WordPress.
It’s possible that your theme or another plugin has removed or renamed jQuery-modal; this shouldn’t break anything else in NextGEN but I would recommend disabling other plugins / themes to determine if there is a conflict so that you know what is going on.
Thanks kniebremser! Sorry for the delay on these; I’ve been really busy lately moving to a new state.
I’ve checked in a fix for everything but display_tab_js, which seems to be correctly formed with an ending brace. There is a braceless if/else – could that be what you mean?
This will be finally be resolved in our next release. For those needing a patch modify nextgen-gallery/products/photocrati_nextgen/modules/fs/package.module.fs.php and around line 335 (at the end of join_paths(), before return $retval) add:
// Check for and adjust Windows UNC paths (\\server\share\) for network mounted sites if ((strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') && substr($this->get_document_root(), 0, 2) === '\\\\') $retval = '\\\\' . $retval;Hi madeglobal,
Our WP-CLI module doesn’t have any additional classes or mixins and exists as just the one file so our build process doesn’t create the package.module.(module-name).php file; there’s no need to rename module.wpcli.php
We know that NextGen creates a handful of strict warnings (and with PHP7 just plain warnings) that are a side result of us using a PHP framework that adds mixins-like features to PHP. Unfortunately we’re not really able to fix them until we can make PHP 5.4 our minimum requirement.
In this case the missing file is totally harmless. I’ll find a way to prevent this from being generated in future releases; we’re in testing of a new release now so it may come in the version after this upcoming one.
You could create a blank file named ‘package.module.wpcli.php’ to silence the warning for now.
I’ve today been testing this and the following works for me:
To your config/application.php add
define('NGG_GALLERY_ROOT_TYPE', 'content');and in NextGen’s “Other Options” > “Where would you like galleries stored?” set the value to “gallery” – this will cause any new galleries to load from web/app/(gallery-name). If you have any existing galleries you’ll need to edit their gallery path appropriately from Manage Galleries.As Cais said de- and re-activating NextGen will not lose any data. I’ve looked the problem and have committed a fix; the next release of NGG will no longer have this problem. Thanks ozminskisj!
I don’t see any harm in your proposal; I’ve pushed a commit with your proposed change.
Thanks shurix239!
I’m not seeing any obvious ways this could be triggered, but I can’t argue with the change in logic. I’ve committed an update with your proposed change, thanks nyodulf!
What exactly do you mean by “call that gallery” – do you want to retrieve the rendered HTML of a displayed gallery?
Forum: Plugins
In reply to: [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] tag for imageTo retrieve an images tags do this:
$tags = wp_get_object_terms($image->pid, 'ngg_tag');This returns an array of WP_Term objects; iterate through them and display $term->name in your gallery template.
We don’t have very good documentation on our hooks unfortunately, it’s still a work in progress. Here is what I have right now – the styling is awful but its at least complete with filter, parameters, and a description.
I welcome any questions or feedback. For altering admins of galleries you’ll likely want to check out the ‘ngg_created_new_gallery’ action, and the rest of my “Introduction to NextGen Gallery’s internals” if you’re interested in modifying how NGG works.
Thanks rrhode! I’ve checked in a modified form of your patch.
Thanks TiKu, it appears that warning is generated reliably when using WP-CLI and with a system cron. I’ve pushed a fix that will be in the next release.
If you’re seeing that warning generated by your web server you should inspect your settings, $_SERVER[‘REQUEST_METHOD’] should always be present when PHP is working from an HTTP request.