Replies
I can over-ride the lightbox/photo.php
However, it seems that the default photo.php is not being loaded. the image that appears does not have the mpp classes.
This is where we started, but I’m pleased to have the lightbox up and working. Is there any way I can zoom that image?
My last issue is that I’m trying to overload the single image view – the one that appears when you click on the image in the lightbox, the one you see if you turn the lightbox off and the gallery thumbnail is clicked from the shortcode gallery, could you tell me which file I should be over-riding for that?
Nonetheless Brajesh, I have found your bug, maybe you can confirm the issue? As in, it is when you check for, and try to load local storage on my browser, it fails, and throws that error. Unless you are saying that I am wrong, and there is nothing wrong with the code, and look elsewhere?
I have fixed it:
class-mpp-admin-settings-page.php line 625:
Was
if (typeof(localStorage) !== 'undefined') {
Now
if (typeof(localStorage) !== 'null') {
Now I can get back to understanding why MediaPress is not loading the right size photo, or the photo.php template file.
On the MediaPress settings page, the contnt loads, but then then all tabs are hidden, and I get the following error:
[2025-06-17 11:20:37] - Javascript Message: Uncaught Error: Syntax error, unrecognized expression: #038; - URL: https://brigantesnation.com/wp-admin/load-scripts.php?c=0&loadchunk_0=jquery-core,jquery-migrate,utils,wp-hooks,jquery-ui-core,underscore,moxiejs,plupload,jquery-ui-mouse,jquery-ui-sortable,jquery-t&loadchunk_1=ouch-punch&ver=c6d0b1135633ba322c1db55348037e4b - Line: 2
I thought it was because the ampersand was being misprinted, but now I understand that this printed behaviour is correct, and that some js on this page is failing to recognise that content.