Unable to change the set used on a gallery

Permalink Browser Info Environment
We are programmatically adding the Gallery Block to pages with information imported from another site. When the page is created and the editor tries to update the gallery by editing in-page, they receive an error that outputs PHP instead of executing it:

if (!$bID) { $bID = $request->request->get('bID'); } $a = \Area::get($this->page, $arHandle); if (!is_object($a)) { throw new \Exception('Invalid Area'); } $this->area = $a; if (!$a->isGlobalArea()) { $b = \Block::getByID($bID, $this->page, $a); $this->set('isGlobalArea', false); } else { $stack = \Stack::getByName($arHandle); $sc = ConcretePage::getByID($stack->getCollectionID(), 'RECENT'); $b = \Block::getByID($bID, $sc, STACKS_AREA_NAME); $b->setBlockAreaObject($a); // set the original area object $this->set('isGlobalArea', true); } if (!$b) { throw new Exception(t('Access Denied')); } $this->block = $b; $this->permissions = new \Permissions($b); $this->set('bp', $this->permissions); $this->set('b', $b); } public function getViewObject() { if ($this->permissions->canViewEditInterface() && $this->canAccess()) { return \Concrete\Core\Controller\Controller::getViewObject(); } throw new Exception(t('Access Denied')); } protected function getBlockToEdit() { $ax = $this->area; $cx = $this->page; if ($this->area->isGlobalArea()) {

Any chance you assist in diagnosing this?

Thanks,
Brian

Type: Ticket
Status: Archived
TooqInc
View Replies:
TooqInc replied on at Permalink Reply
TooqInc
Bump. Any word here?
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.
TooqInc replied on at Permalink Reply
TooqInc
Still an issue.

On Sat., Dec. 1, 2018, 6:07 p.m. concrete5 Community <
discussions@concretecms.com wrote:
emirii replied on at Permalink Reply
emirii
Hello, I am so sorry for the late response. Is there any way I can get a login (thru PM) to this site, with an example page it is happening? I installed a fresh copy of C5 8.4.1 and currently I am not seeing this issue. It would help me diagnose better if I could see it.

Thank you so much.
TooqInc replied on at Permalink Reply
TooqInc
PM Sent.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
Buttons Factory Pro (2.2), C5DK Blog (8.3.1.4), Cloneamental (0.9.3), Custom Block (1.0), ExchangeCore reCAPTCHA (1.1.1), GalleryES (2.5.9), HonestWebsites Simple testimonials (1.0.0), Mega Menu (1.6.2.2), Quick Tabs (1.0), Supermint Theme (3.4.1.3), Video Lightbox (1.8.9), Wetu Itinerary (0.0.0.4)

# concrete5 Overrides
blocks/page_list/templates/safari_slider/accommodation/serviced-camping-1.png, blocks/page_list/templates/safari_slider/accommodation/lodge-serviced-camping-2.png, blocks/page_list/templates/safari_slider/accommodation/serviced-camping-3.png, blocks/page_list/templates/safari_slider/accommodation/2-to-3-accomodation.png, blocks/page_list/templates/safari_slider/accommodation/3-to-4-accomodation.png, blocks/page_list/templates/safari_slider/accommodation/lodge-serviced-camping-3.png, blocks/page_list/templates/safari_slider/accommodation/serviced-camping-2.png, blocks/page_list/templates/safari_slider/accommodation/lodge.png, blocks/page_list/templates/safari_slider/accommodation/adventure-camping-1.png, blocks/page_list/templates/safari_slider/accommodation/lodge-serviced-camping-1.png, blocks/page_list/templates/safari_slider/accommodation/beach-resort.png, blocks/page_list/templates/safari_slider/accommodation, blocks/page_list/templates/safari_slider/no_image.png, blocks/page_list/templates/safari_slider/view.css, blocks/page_list/templates/safari_slider/vehicle/light-aircraft.png, blocks/page_list/templates/safari_slider/vehicle/overland-truck.png, blocks/page_list/templates/safari_slider/vehicle/open-sided-4wd.png, blocks/page_list/templates/safari_slider/vehicle/closed-4wd.png, blocks/page_list/templates/safari_slider/vehicle/minivan.png, blocks/page_list/templates/safari_slider/vehicle, blocks/page_list/templates/safari_slider/view.php, blocks/page_list/templates/safari_slider, blocks/page_list/templates/safari_list/accommodation/serviced-camping-1.png, blocks/page_list/templates/safari_list/accommodation/lodge-serviced-camping-2.png, blocks/page_list/templates/safari_list/accommodation/serviced-camping-3.png, blocks/page_list/templates/safari_list/accommodation/2-to-3-accomodation.png, blocks/page_list/templates/safari_list/accommodation/3-to-4-accomodation.png, blocks/page_list/templates/safari_list/accommodation/lodge-serviced-camping-3.png, blocks/page_list/templates/safari_list/accommodation/serviced-camping-2.png, blocks/page_list/templates/safari_list/accommodation/lodge.png, blocks/page_list/templates/safari_list/accommodation/adventure-camping-1.png, blocks/page_list/templates/safari_list/accommodation/lodge-serviced-camping-1.png, blocks/page_list/templates/safari_list/accommodation/beach-resort.png, blocks/page_list/templates/safari_list/accommodation, blocks/page_list/templates/safari_list/no_image.png, blocks/page_list/templates/safari_list/view.css, blocks/page_list/templates/safari_list/vehicle/light-aircraft.png, blocks/page_list/templates/safari_list/vehicle/overland-truck.png, blocks/page_list/templates/safari_list/vehicle/open-sided-4wd.png, blocks/page_list/templates/safari_list/vehicle/closed-4wd.png, blocks/page_list/templates/safari_list/vehicle/minivan.png, blocks/page_list/templates/safari_list/vehicle, blocks/page_list/templates/safari_list/view.php, blocks/page_list/templates/safari_list, blocks/page_list/templates, blocks/page_list/controller.php, blocks/page_list, blocks/page_attribute_display/templates/wetu/view.php, blocks/page_attribute_display/templates/wetu, blocks/page_attribute_display/templates, blocks/page_attribute_display, blocks/simple_stack_display/edit.php, blocks/simple_stack_display/db.xml, blocks/simple_stack_display/add.php, blocks/simple_stack_display/view.php, blocks/simple_stack_display/controller.php, blocks/simple_stack_display, blocks/safari_flip/edit.php, blocks/safari_flip/db.xml, blocks/safari_flip/composer.php, blocks/safari_flip/icon.png, blocks/safari_flip/config.json, blocks/safari_flip/add.php, blocks/safari_flip/view.css, blocks/safari_flip/form.php, blocks/safari_flip/view.php, blocks/safari_flip/controller.php, blocks/safari_flip, blocks/page_list_safari.zip, blocks/page_list_safari/controller.php, blocks/page_list_safari, controllers/single_page/search.php, controllers/single_page, single_pages/page_not_found.php, single_pages/search.php, themes/supermint/css/afsaf.css, themes/supermint/css/images/select-destination.png, themes/supermint/css/images/select-num-days.png, themes/supermint/css/images/select.png, themes/supermint/css/images/select-experiences.png, themes/supermint/css/images/search.png, themes/supermint/css/images/select-price-range.png, themes/supermint/css/images, themes/supermint/css/build, themes/supermint/css, themes/supermint/elements/header.php, themes/supermint/elements, themes/supermint/safari.php, themes/supermint, themes/packages/theme_supermint/theme/supermint/css/afsaf.css, themes/packages/theme_supermint/theme/supermint/css/images/select-destination.png, themes/packages/theme_supermint/theme/supermint/css/images/select-num-days.png, themes/packages/theme_supermint/theme/supermint/css/images/select.png, themes/packages/theme_supermint/theme/supermint/css/images/select-experiences.png, themes/packages/theme_supermint/theme/supermint/css/images/search.png, themes/packages/theme_supermint/theme/supermint/css/images/select-price-range.png, themes/packages/theme_supermint/theme/supermint/css/images, themes/packages/theme_supermint/theme/supermint/css/afgsaf.css.bu, themes/packages/theme_supermint/theme/supermint/css/build, themes/packages/theme_supermint/theme/supermint/css, themes/packages/theme_supermint/theme/supermint, themes/packages/theme_supermint/theme, themes/packages/theme_supermint, themes/packages

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - Off
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 1 minutes.

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.0.29

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, fileinfo, filter, ftp, gd, hash, iconv, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, soap, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 90
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 256M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 8M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.