Fancybox install ERROR

Permalink Browser Info Environment
Hi, i always get this information:

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


and its impossible to install your add ?
Can you help me ?
Klaus

Type: Ticket
Status: Archived
webdesign4
View Replies:
crivers replied on at Permalink Reply
crivers
Hi,

I'll be happy to assist you. This is a new error. Can you please send me a copy of your environment information? This can be found in your concrete dashboard->system->environment.

Thanks!
xxcriversxx
webdesign4 replied on at Permalink Reply
webdesign4
You get the information per e-mail
Thanks
webdesign4 replied on at Permalink Reply
webdesign4
Hi, can fix the error - i have send to you ftp and other information - Sorry but i want work with the project and the addon doesnt work ?
Best regards
webdesign4 replied on at Permalink Reply
webdesign4
Hi You are happy to assist me - but what time ? sorry about my englsich but i have send all you need - ftp -cms envirement and now ?
crivers replied on at Permalink Reply
crivers
Hi,

Thanks for your patience. I've been away in vacation the past couple of days so I'm just now getting caught up. Can you confirm what email address you used?

Thanks!
xxcriversxx
webdesign4 replied on at Permalink Reply
webdesign4
Ok, 10 Days later .... don forget me please ;-)
crivers replied on at Permalink Reply
crivers
Hi, I haven't forgot but I didn't get your email. Can you confirm?

xxcriversxx
webdesign4 replied on at Permalink Reply
webdesign4
Hi, i have send a second time to xxcriversxx@gmail.com
i hope you get ? it
thanks Klaus
okapi replied on at Permalink Reply
okapi
This seems to be an error related to PHP 7:
As the error message says...
On line 158 of fancybox2/blocks/fancybox2/controller.php replace

public function registerViewAssets(){

with

public function registerViewAssets($outputContent = ''){

And istallation or upgrading works well again.
webdesign4 replied on at Permalink Reply
webdesign4
Sorry i try, but this is not the error ;-(
okapi replied on at Permalink Reply
okapi
This is not the error?
Actually this is what the error message says, and it's true for all add-ons using "registerViewAssets()" which is not compatible with PHP7. Did you change the related line of controller.php? Which PHP Version are you running?

Regarding another add-on, showing the same issue, see here:

https://www.concrete5.org/marketplace/addons/thumb-gallery/support/e...

@xxcriversxx
Please update your add-on!
webdesign4 replied on at Permalink Reply
webdesign4
Ok, I'm missing the knowledge, I use the moment php7.0 should I go back?
okapi replied on at Permalink Reply
okapi
You can keep with PHP 7, but you have to replace the line of code in controller.php of the block as mentioned above.
I have experienced the same problem, and the fix worked for me.
Maybe you have to uninstall the addon first, then apply the fix and install it again.
webdesign4 replied on at Permalink Reply
webdesign4
i try it - i have deinstal the add first and know i change -
webdesign4 replied on at Permalink Reply
webdesign4
now its impossible to install, the system ask me is the controller.php valid ? i roll back
webdesign4 replied on at Permalink Reply
webdesign4
ah, do you have the first controller.php for me ?
i change teh wrong
crivers replied on at Permalink Reply
crivers
I'll be happy to help you all with this. As promised, the plugin has been updated to resolve this issue. Please give it a try and let me know if you need anything else!

Thanks,
xxcriversxx
webdesign4 replied on at Permalink Reply
webdesign4
Do you think it is better to delete everything by ftp first?
okapi replied on at Permalink Reply
okapi
You can delete the old package and upload the new one right after. Then open "Extend Concrete5" and update the package (there will be a message on top, saying there is an update for Easy Fancybox 2).
webdesign4 replied on at Permalink Reply
webdesign4
Finish it works
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.
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.13
Version Installed - 5.7.5.13
Database Version - 20160615000000

# concrete5 Packages
Easy Fancybox 2 (0.18), Manual Nav (2.2.0), Palette (2.0.4), Zoomer (1.0.1)

# concrete5 Overrides
languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/es_ES/LC_MESSAGES/messages.mo, languages/es_ES/LC_MESSAGES, languages/es_ES, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/es_ES/LC_MESSAGES/messages.mo, languages/es_ES/LC_MESSAGES, languages/es_ES, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.25

# Server API
cgi-fcgi

# PHP Version
7.0.13

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

# PHP Settings
max_execution_time - 180
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 100M
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
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
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/61.0.3163.100 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.