Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2017-05-22 09:49:31

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13028
Website

[Menu Random Photo, 2.7.d] ReferenceError: MRP_blockHeight...

Hello romanf,

With theme Stripped, on the page of the photo (ie picture.php) I get this javascript error in the console:

Code:

ReferenceError: MRP_blockHeight is not defined

... and the picture is not shown at all (because it relies on javascript)

Piwigo version: 2.9.0
Theme : Stripped 2.5.7
PHP version: 5.6.14
MySQL version: 5.5.46


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#2 2017-05-23 18:36:33

romanf
Member
Registered: 2017-01-22
Posts: 23

Re: [Menu Random Photo, 2.7.d] ReferenceError: MRP_blockHeight...

Hi plg,

I can't reproduce it. Does it work on other themes?
The JS in MenuRandomPhoto consists of two parts: menu_random_photo.js.tpl which get's expanded by the template engine (and contains the definition of MRP_blockHeight, amongst others) and mrp.js which handles the rotation of the pics via timer...

Can you look at the source of the page and check for
...
var MRP_blockHeight=
...
and
...
function doRotate()
...

Thanks
Roman

Offline

 

#3 2017-06-02 16:31:05

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13028
Website

Re: [Menu Random Photo, 2.7.d] ReferenceError: MRP_blockHeight...

Hi romanf,

The problem does not seem to be for Stripped theme. I reproduce it with Elegant theme as well.

Go on page [Administration > Configuration > Options > Display] and check the option "show menubar" in the "Photo page" section. You will get the error in your browser console.


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#4 2017-06-12 21:35:23

romanf
Member
Registered: 2017-01-22
Posts: 23

Re: [Menu Random Photo, 2.7.d] ReferenceError: MRP_blockHeight...

Heya,

I uploaded a new version of the plugin. Apart from the new feature, it should also fix the problem you reported.

Feedback very much welcome! :)

Rgds
Roman

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact