php7 compatibility

Permalink Browser Info Environment
Hi Sebastien,

When running php7 i'm getting this error:

Declaration of Concrete\Package\ThemeAnitya\Block\PieChart\Controller::registerViewAssets() should be compatible with Concrete\Core\Block\BlockController::registerViewAssets($outputContent = '')


I'm not using the piechart block, but it's in an old page version. When trying to delete that version, i'm getting the same error.

I've seen similar errors in the forum, so i guess it's a universal error for register functions.
Could you look into this for making the theme compatible with php7?

Also i get this error when trying to get to the theme dashboard page:
Fatal error: Function name must be a string


I would like to run php7 for better speed performance.

Type: Ticket
Status: Archived
buurvrouw
View Replies:
cloudblaster replied on at Permalink Reply
cloudblaster
I have the same error after upgrading tot php 7, is there already a solution ?

Declaration of Concrete\Package\ThemeSuperMint\Block\PieChart\Controller::registerViewAssets() should be compatible with Concrete\Core\Block\BlockController::registerViewAssets($outputContent = '')
buurvrouw replied on at Permalink Reply
buurvrouw
To get rid of this error you can change a line in this file:
\packages\theme_super_mint\blocks\pie_chart\controller.php

Find this line:
public function registerViewAssets() {


And change it to this:

public function registerViewAssets($outputContent = '') {


If i remember right, there was the same error for another block. You can get rid of it changing the same code in the other block controller.
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.
mlocati replied on at Permalink Reply
mlocati
I posted a description (and the solution) of this problem here:https://www.concrete5.org/community/forums/block_requests/block-zoom...
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 - 5.7.5.6
Version Installed - 5.7.5.6
Database Version - 20151221000000

# concrete5 Packages
Anitya Theme (2.1.1), Touch Gallery (2.0.8).

# concrete5 Overrides
blocks/autonav/templates/anitya_header.php, blocks/autonav/templates, blocks/autonav, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, blocks/autonav/templates/anitya_header.php, blocks/autonav/templates, blocks/autonav, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
litespeed

# PHP Version
7.0.2

# PHP Extensions
bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gender, gettext, gmp, hash, iconv, imap, json, libxml, litespeed, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, 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 - 256M
post_max_size - 32M
sql.safe_mode - Off
upload_max_filesize - 32M
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 - 1440
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9

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.