A few days ago this error came up when I tried to preview the gallery through admin login. It wont even show up if the guess go there. It was working fine before after the initial integration to DragonflyCMS. I even tried to reinstall G2 and it still dont work.
Fatal error: Undefined class name 'gallerycapabilities' in /***OMITED***/html/modules/Gallery/index.php on line 120
PLEASE HELP!
Posts: 32509
1. does g2 standalone still work? is just the dragonfly/g2 thing broken?
2.
FAQ: What information is required when I ask for help in the forums?
FAQ: How can I make sure that my installation files are all intact?
Posts: 19
G2 Standalone work but when previewing from Dragonfly that when the error occur.
Posts: 32509
i guess you're calling GalleryCapabilities::set() too early.
you can't call it before calling GalleryEmbed::init
Posts: 19
I had GalleryCapabilities::set() calling right after GalleryEmbed::init. And also I used DragonflyCMS with Link Engine Optimization (LEO), where it translate /index.php?name=gallery2 to /gallery2.html. And from what I am understanding if LEO is turn OFF it is working.
Posts: 32509
/html/modules/Gallery/index.php on line 120
that's where you have to start searching, remove the GalleryCapabilities::set call there
Posts: 19
If I removed GalleryCapabilities::set call it will give me different error. I had re-installed the Gallery and turned OFF LEO to the site. It looks OK from general users/guest mode. But when I signed in as an admin, the error show up.
Posts: 1
This error has been corrected. Missing the closing } for an if else was causing the issue.