GlimmerLabs / MathOverImages

A language and ecosystems for doing math over abstract images.
GNU Lesser General Public License v3.0
4 stars 3 forks source link

Featured Image gallery not loading #36

Closed wolterzo closed 10 years ago

wolterzo commented 10 years ago

an error message occurs when trying to load the featured image page. Something to do with ejs.

"ReferenceError: nextPage is not defined at eval (eval at (/home/mist/MathOverImages/Site/node_modules/ejs/lib/ejs.js:242:14), :30:5535) at eval (eval at (/home/mist/MathOverImages/Site/node_modules/ejs/lib/ejs.js:242:14), :30:7095) at /home/mist/MathOverImages/Site/node_modules/ejs/lib/ejs.js:255:15 at Object.exports.render (/home/mist/MathOverImages/Site/node_modules/ejs/lib/ejs.js:293:13) at View.exports.renderFile as engine at View.render (/home/mist/MathOverImages/Site/node_modules/express/lib/view.js:76:8) at Function.app.render (/home/mist/MathOverImages/Site/node_modules/express/lib/application.js:519:10) at ServerResponse.res.render (/home/mist/MathOverImages/Site/node_modules/express/lib/response.js:782:7) at /home/mist/MathOverImages/Site/functions/gallery.js:39:13 at /home/mist/MathOverImages/Site/functions/gallery.js:20:13"

alexthemitchell commented 10 years ago

I've reproduced the error and will look into it.

alexthemitchell commented 10 years ago

So for some reason, featured image galleries are not set up like recent galleries where the backend supports paging through multiple pages of them. I've patched the bug so that it doesn't crash anymore, but if we want to page-ate it, there will have to be some more backend updating.