Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » Gallery name missing from NGG link

  • Resolved PurplePix

    (@purplepix)


    An earlier request for our site
    https://wordpress.org/support/topic/adding-galleries-save-doesnt-function?replies=14#post-5842982

    The issue is album one will display galleries using the shortcode [ album id=1 ] (extra spaces added), but when the gallery is selected the page is displayed with the message “no images were found”.. The problem can be seen in the status bar when hovering over the link that the link is missing the gallery name. Giving ‘www/SiteName/index.php/nggallery/firstname-lastname?page_id=1’, while other galleries that work give ‘www/SiteName/index.php/nggallery/pagename/firstname-lastname?page_id=##’. The simple solution would be to make another album and move all the image galleries into it.

    This goes back to when the site was hacked and we were assisted in updating and rebuilding, Photocrati looked at our site at that time. After the Hack updating Album 1 had all the galleries thrown out and not able to reload them. During the rebuild a work around solution in place was to link each gallery to a page with the gallery short code on it. The problem this creates is the backend of the dashboard page files becomes bloated, making future maintainence intensive.

    This is further to the discussion that started 5 months ago. The site was updated and is currently running WordPress 4.1, Twenty Fourteen Theme, Akismet, All-in-one Event Calendar by Time.ly, BackUpWordpress, Fourteen Extend, NextGEN Gallery by Photocrati (2.066.37).

    I am a photo club photographer that has been given the task of managing the web site, I am not a programmer and have worked to this point from checking on line forums, using Web matrix to build an offline site for testing and exploring with MS DOM F12 (that I struggle with).

    The site was handed back to me in September, and some small tweeks and customization has been done. All tweeks or changes have been made in a child theme (not currently running) , and the 2014 theme/nggallery for compact and album templates plus CSS in wp_content/ngg_styles. All approved and upgrade safe.

    All files are current except Time.ly, the last update produced Latin1 characters in text in place of text puntuation characters – That is a different issue to solve later as it does not affect the current issue.

    With TwentyFourteen and NextGEN Galleries active (All other pluging deactivated), NGG Cache cleared, the problem still exists and is repeatable as explained below. The Theme has also been switched to TwentyThirteen with no change in result.

    The issue of Album 1 is repeatable with a gallery moved from Album 15 to Album 1 and back to Album 15. Album 15 (and all except Album 1) works perfect, Album 1 is missing the gallery name in the link.

    I have attempted to back track the link, but searching the error mesage came up with a file by the same name, but can find no link to it.

    I would like to track the link to understand how the error occures, is it a software bug or something left from the hack. Where do I start tracking the link?

    Code from Members photo gallery line 146: http://www.kamloopsphotoarts.ca/?page_id=7306
    <a class="Link" href="http://www.kamloopsphotoarts.ca/index.php/nggallery/members-galleries/test-gallery-03-normal-build?page_id=7306">
    Code from Member Galleries line 146: http://www.kamloopsphotoarts.ca/?page_id=13
    <a class="Link" href="http://www.kamloopsphotoarts.ca/index.php/nggallery/test-gallery-01-no-page-link?page_id=13">
    Both can be reached from links on Gallery Home; http://www.kamloopsphotoarts.

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @purplepix – If you use the IGW (“green button”) to replace the shortcode inserted version of the album do you still have the same issue?

    Also, have you tried setting the WordPress Permalinks to something other than the “Default” such as “Post name” or “Month and name”?

    – Cais.

    Thread Starter PurplePix

    (@purplepix)

    @photocrati – I went to WP Pages on the page pointing to the album with the short link. I removed the short link and replaced it with the green box. Settings Display Type NG basic Compact Album, Display Galleries- NG Basic thumbnails, Template- NG Album – compact.php. It displayed the image of the last gallery on the page, I updated the page. Checking the test gallery (Album 1) that is the issue I am trying to solve, there was no difference. The gallery that is set up using ‘not linked’ as a page link in manage galleries (the normal process) produces the error message ‘no images were found’. While the other gallery using the work around of a page with the gallery short code displays as expected. Using the two links in the code section of my request will show what happens and looking at the status bar (lower part of screen) will show that the gallery name is missing from the hyper link. The second link is using ‘not linked’ in the image galleries (the normal process).

    Going to settings / permalinks it was set to default. I switched it to ‘Post Name’ and this made no change as I again got the error ‘no images were found’. I switched back to default and this made no difference. I did a check with WebMatrix on my computer test site for the words ‘no images were found’ and found the file `~\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_gallery_display\templates\no_images_found.php (1): <p>no images were found</p>
    ` while checking cPanel a search did not find that file, a physical search shows the file. With no other references I don’t know how to step backwards to see where the problem happens, or a place in the code where I can step forward to track the link being built.

    A word on the green box, I understand it is a recent feature, I think there is opportunities to make it better like ALT text if the link image is removed.

    Plugin Contributor photocrati

    (@photocrati)

    @purplepix – There may be something still affecting your site from when it was hacked (not as in still being hacked but possibly not 100% corrected).

    It may be best to send us a Bug Report (http://nextgen-gallery.com/report-bug/ … please reference this topic) so we can get a closer look at your site.

    We will likely need full access to your site, such as WordPress log in, FTP credentials, and possibly database access … please include those with your Bug Report.

    Thanks!

    – Cais.

    Thread Starter PurplePix

    (@purplepix)

    @photocrati – just backing up the site, as soon as that is complete will submit a bug report.
    When a gallery is added to an album (Manage albums) and saved, then the page called that points to the album is opened. Where does the link to the galleries in the album start getting constructed. I would like to explore my off line site to better understand how that information is assembled.
    Once the site is backed up and a bug report submitted, I will not be making changes to the on line site so your troubleshooting will not be looking for a moving target.

    Plugin Contributor photocrati

    (@photocrati)

    @purplepix – Thanks.

    We would definitely like to see what is going on with the site and where the breakdown is occurring … hopefully this is not related to the hack you suffered from earlier.

    – Cais.

    Thread Starter PurplePix

    (@purplepix)

    @photocrati – Bug report sent

    Plugin Contributor photocrati

    (@photocrati)

    @purplepix – Thanks!

    – Cais.

    Thread Starter PurplePix

    (@purplepix)

    Still looking for a solution. When I open a gallery from either a working or non working album, I get the following error code ( dotdotdot: No element found for “.ngg-album-desc”.)
    Using Web Matrix to search for .ngg-album-desc I get the following results:

    ~\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_basic_album\static\nextgen_basic_album.css (109):   .ngg-album-compact h4 .ngg-album-desc {
    
    ~\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_basic_album\static\init.js (2):       $('.ngg-album-desc').dotdotdot();

    I am not sure if this is correctly coded on line 109 in the css or if this could affect the problem with the link.

    I know the problem is in the building of the link because calling the right link directly or using Internet Explorer DOM F12 and making a change to the link in html, then selecting the gallery on the page will take you to the working result, where the gallery and images are correctly displayed. I am currently trying to understand JS so I can see were and how the link is being built. That is the reason for asking if the CSS on line 109 is correct, as I have not seen that format used before.

    Plugin Contributor photocrati

    (@photocrati)

    @purplepix – Thanks for the follow-up but it would probably be best to keep the troubleshooting within the Bug Report for the time being rather than splintering the conversation here and there.

    – Cais.

    Thread Starter PurplePix

    (@purplepix)

    @photocrati, I am confused. There has been no diologue or visible activity from the bug report. It was suggested locally, that this being a free version and possibly a one of there would possibly not be any action.
    With that in mind I have continued to search and learn how to use tools, looking for a solution. I understood that the bug report was to provide information about what was happening, how the problem could be reliabily reproduced so they could explore and provide feed back or a solution. That is what was done while identifying this thread, I have more questions but no where to ask them, six months ago I had not seen PHP or tried to look at Javascript. Most of the time while others were trying to write code I spent understanding what box to check in the Dashboard interface to get the results I wanted. There are no boxes to check for this problem, that is why I came here for help and guidance. Each day I come to another wall like today how to decipher ‘galleries.gallery_d9d14dd7a4806505b308f83faf08d3e9’ which looks like HexDecimal so I can move to the next wall, each solution takes me days. What should I be doing?

    Plugin Contributor photocrati

    (@photocrati)

    @purplepix – If you have not received a response from your Bug Report, please send it again and specifically reference this topic.

    Thanks!

    – Cais.

    Thread Starter PurplePix

    (@purplepix)

    @photocrati – Resubmittted bug report.

    Plugin Contributor photocrati

    (@photocrati)

    @purplepix – Thanks. We did receive the first Bug Report (I did not recall it until I was reading the second report and looked at your site again) and this second Bug Report.

    We did respond to the first and are developers will be looking into this specific issue you are seeing on your site … unfortunately I do not have an ETA at this time.

    – Cais.

    Thread Starter PurplePix

    (@purplepix)

    I have been bugged for a long time by some of the things I saw or didn’t see. In this case the missing slug in the database for the album that was not working.

    I first backed up all the site in sections, starting with the data bases and then the home folder with the cPanel wizard. I went to the WordPress dashboard and the pages for the broken and working albums to record the gallery name, album number and slug.

    The next step was to go to cPanel and phpMyAdmin and open the album in the database. Going to the blank slug box I double clicked it and entered the slug. I pressed enter on my keyboard and got a message letting me know that one line had been affected.

    Next it was back to the web main gallery page and navigated to the problem link. First I forced a page refresh then clicked the link which now worked perfectly as the slug was the information missing from the link. I also used Web DEV tools and modified the link to confirm that is would still be broken if that information was missing.

    The question that remains, is what prevents slug information from being current in the database. Files and pages are updated but the slug if changed or removed it affects the display of the page. I believe the slug might have been lost in the hack, with information stored in Transients and not being a programmer, I have and continue to struggle with getting basic information. The issue with non programmers is experienced programmers assume everyone understands, so it is very difficult to find any real basic information with good non tech descriptions and examples. On the other side non programmers will and I have searched to find solutions by checking the right boxes, modifying templates and adding custom CSS in the update safe places provided while not modifying the core code.

    I see this issues as closed unless you can tell me why the slug is not updated, and your access to the back-end have been removed.

    Plugin Contributor photocrati

    (@photocrati)

    @purplepix – If you wish to set this topic to resolved that is quite fine, but as is it would be much better to keep to the Bug Report conversation rather than switch back and forth between these support venues … and as a Bug Report will still have plans to review any issues that may appear to be still relevant as compared to the most recent release of NextGEN Gallery (which, if you have not, I strongly recommend updating to).

    Thanks!

    – Cais.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Gallery name missing from NGG link’ is closed to new replies.