Resolved Bug


This bug has been marked as resolved.

getPermissionObject() incompatibles between 5.5.x and 5.6.x

Permalink 1 1 Browser Info Environment
In old versions of Concrete5, like 5.5.x function inside core BlockController defined as getPermissionsObject(), but in new BlockController for 5.6.x this is called getPermissionObject().
This is cause to some add-ons like Advanced Comments and others what uses getPermissionsObject() do not work anymore in new versions of Concrete5.

Only one change - symbol "s" and add-ons don't work.
Status: Resolved
Cravener
View Replies:
andrew replied on at Permalink Reply
andrew
Hmm. I don't know that this is that simple. Add-ons that do significant checks to permissions will likely have to be reworked. Have you tested that these addons work with the updated method name or do they just fail in different ways?
Cravener replied on at Permalink Reply
Cravener
I have added method to the block controller of add-on - getPermissionsObject() which redirects to a new method getPermissionObject() in 5.6.0.1 and so it works.
tmtobias replied on at Permalink Reply
...very BASIC work-around from a non-techie...

I can't duplicate the problem on all pages (site has very basic add-ons), but my HOME page had the problem.

I turned page cache OFF for the pages with the problem, and that worked. (I admit, I don't know enough about concrete or php to know WHY it worked, but it did.)
andrew replied on at Permalink Reply
andrew
Added this method back in 5.6.0.2.

concrete5 Environment Information

# concrete5 Version
5.6.0.1

# concrete5 Packages
Advanced Comments (3.2).

# concrete5 Overrides
None

# Server Software
Apache/2.2.22 (Ubuntu)

# Server API
apache2handler

# PHP Version
5.3.10-1ubuntu3.2

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 2M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.75 Safari/537.1