Undefined variable $titleText when trying to add block

Permalink Browser Info Environment
Just purchased this add-on and I'm unable to use it.

Adding the block I get an error immediately.

Undefined variable $titleText.
/home/littlel9/public_html/packages/image_link_with_content/blocks/image_link_with_content/form.php(23): Whoops\Exception\ErrorException->null

Please advise. Screenshot attached.

Thank you.

1 Attachment

Type: Ticket
Status: Resolved
Way2Sharp4U
View Replies:
ob7dev replied on at Permalink Reply
ob7dev
try this attachment for hot fix

php 8 has some other things that affect this block. one being you will get an error if you add a link then delete the link. But this file should hopefully get it working for you in the mean time.

edit: working on a better version
ob7dev replied on at Permalink Reply
ob7dev
try the updated file on the download page, version 1.7. let me know if it works for you
Way2Sharp4U replied on at Permalink Reply
Way2Sharp4U
v1.7 works! Thank you!

I just tried to add a link and then delete a link but did not get an error. Is there a specific order to make that error happen or do you think it's licked in v1.7?
ob7dev replied on at Permalink Reply
ob7dev
I'm still getting the error if I click "Choose Page", select a page, then press the x to delete the page. Still figuring that one out. The link works as it should if a page is selected and then saved though.
Way2Sharp4U replied on at Permalink Reply 1 Attachment
Way2Sharp4U
Interesting. I haven't experienced this. I wonder what is happening on my setup that's different than yours. See the attached video demonstrating how it works for me.

I do know for other reasons I had been running various 'Tasks' on the site. Clearing out old page versions, full cache clearing, rescanning files, re-indexing the site, etc. I don't know if any of this would be related but I can't think of anything different that I have done.

Hopefully, you figure this one out. Otherwise, I'm good here. Working great. Thank you for the help and the add-on!
ob7dev replied on at Permalink Reply
ob7dev
video attachment doesnt play for me. but glad everything is working for you. If you need anything else let me me know. Thanks again.

concrete5 Environment Information

# Concrete Version
Core Version - 9.1.3
Version Installed - 9.1.3
Database Version - 20220908074900

# Hostname
az1-ts104.a2hosting.com

# Environment
production

# Database Information
Version: 10.5.17-MariaDB-cll-lve
SQL Mode: ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# Concrete Packages
Active Cookie Consent (2.1), Grand Gallery (2.1.1), Image Link With Content (1.6), Is Page Public? (1.0), Macareux Google Map Attribute (1.1), Sermon Series (9.1.0), Sub Atomik Theme (1.1.2), Timeline (2.0), Universal Content Puller (9.3.5)

# Concrete Overrides
None

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

# Server Software
LiteSpeed

# Server API
litespeed

# PHP Version
8.1.15

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, hash, i360, iconv, igbinary, imap, intl, ionCube Loader, json, ldap, libxml, litespeed, mbstring, memcached, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, redis, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 300
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 10000
memory_limit - 768M
post_max_size - 128M
upload_max_filesize - 128M
zend.exception_string_param_max_len - 15
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
memcached.sess_lock_max_wait - not set
memcached.sess_lock_wait_max - 150
memcached.sess_server_failure_limit - 0
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
redis.pconnect.connection_limit - 0
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096
opcache.jit_bisect_limit - 0
opcache.jit_max_exit_counters - 8192
opcache.jit_max_loop_unrolls - 8
opcache.jit_max_polymorphic_calls - 2
opcache.jit_max_recursive_calls - 2
opcache.jit_max_recursive_returns - 2
opcache.jit_max_root_traces - 1024
opcache.jit_max_side_traces - 128
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 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.