Skip to content

Using ${var} in strings is deprecated, use {$var} #182

@blloyd78

Description

@blloyd78

Describe the bug

I have just installed and activated the plugin but it generates the following error on both Wordpress backend and website frontend:

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/plugins/ad-refresh-control/includes/functions/core.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/plugins/ad-refresh-control/includes/functions/core.php:78) in /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-includes/functions.php on line 7168

Warning: Cannot modify header information - headers already sent by (output started at /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/plugins/ad-refresh-control/includes/functions/core.php:78) in /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-includes/functions.php on line 7144

Warning: Cannot modify header information - headers already sent by (output started at /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/plugins/ad-refresh-control/includes/functions/core.php:78) in /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-admin/admin-header.php on line 14

Steps to Reproduce

  1. Install Ad Refresh Control plugin
  2. Activate the plugin
  3. The error appears at the top of the page following refresh

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

`

wp-core

version: 6.8.2
site_language: en_GB
user_language: en_GB
timezone: Europe/London
permalink: /%postname%
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 2
dotorg_communication: true

wp-paths-sizes

wordpress_path: /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips
wordpress_size: 110.28 MB (115635504 bytes)
uploads_path: /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/uploads
uploads_size: 23.10 MB (24218970 bytes)
themes_path: /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/themes
themes_size: 11.71 MB (12278306 bytes)
plugins_path: /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/plugins
plugins_size: 251.73 MB (263958340 bytes)
fonts_path: /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/uploads/fonts
fonts_size: directory not found
database_size: 180.31 MB (189071360 bytes)
total_size: 577.13 MB (605162480 bytes)

wp-dropins (1)

object-cache.php: true

wp-active-theme

name: Hemingway (hemingway)
version: 2.3.2
author: Anders Norén
author_website: https://andersnoren.se
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, custom-background, post-thumbnails, post-formats, custom-header, custom-logo, title-tag, html5, menus, align-wide, editor-color-palette, editor-font-sizes, widgets, editor-style
theme_path: /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/themes/hemingway
auto_update: Disabled

wp-themes-inactive (2)

Twenty Twenty-Five: version: 1.3, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Four: version: 1.3, author: the WordPress team, Auto-updates disabled

wp-mu-plugins (1)

1&1 Product Subdomain: version: 1.1.0, author: 1&1

wp-plugins-active (22)

aBlocks: version: 2.2.0, author: Academy LMS, Auto-updates disabled
Ad Refresh Control: version: 1.1.5, author: 10up, Auto-updates disabled
Advanced Editor Tools: version: 5.9.2, author: Automattic, Auto-updates disabled
AffiliateX – Amazon Affiliate Plugin: version: 1.3.7.2, author: AffiliateX, Auto-updates disabled
Antispam Bee: version: 2.11.8, author: pluginkollektiv, Auto-updates disabled
Currency Converter Widget ⚡ PRO: version: 1.0.8, author: CurrencyRate.today, Auto-updates disabled
Easy WP SMTP: version: 2.12.0, author: Easy WP SMTP, Auto-updates disabled
IndexNow: version: 1.0.3, author: Microsoft Bing, Auto-updates disabled
Jetpack: version: 15.0, author: Automattic, Auto-updates disabled
Jetpack Boost: version: 4.3.1, author: Automattic - Jetpack Site Speed team, Auto-updates disabled
Kadence Blocks – Gutenberg Blocks for Page Builder Features: version: 3.5.20, author: Kadence WP, Auto-updates disabled
Limit Login Attempts Reloaded: version: 2.26.23, author: Limit Login Attempts Reloaded, Auto-updates disabled
LiteSpeed Cache: version: 7.5.0.1, author: LiteSpeed Technologies, Auto-updates disabled
Matomo Analytics - Ethical Stats. Powerful Insights.: version: 5.3.3, author: Matomo, Auto-updates disabled
Noptin - WordPress Newsletter Plugin: version: 4.0.6, author: Noptin Newsletter, Auto-updates disabled
Open Currency Converter: version: 1.5.0, author: Joe Hawes, Auto-updates disabled
Regenerate Thumbnails Advanced: version: 2.5.0, author: ShortPixel, Auto-updates disabled
Shariff Wrapper: version: 4.6.15, author: Jan-Peter Lambeck & 3UU, Auto-updates disabled
Statify: version: 1.8.5, author: pluginkollektiv, Auto-updates disabled
Sub Categories Widget: version: 1.5.2, author: BrokenCrust, Auto-updates disabled
UpdraftPlus - Backup/Restore: version: 1.25.7, author: TeamUpdraft, DavidAnderson, Auto-updates disabled
Yoast SEO: version: 25.9, author: Team Yoast, Auto-updates disabled

wp-plugins-inactive (4)

Advanced Ads: version: 2.0.11, author: Advanced Ads, Auto-updates disabled
AMAZING Affiliates: version: 1.0.14, author: pizza2mozzarella, Auto-updates disabled
Broken Link Checker: version: 2.4.6, author: WPMU DEV, Auto-updates disabled
PurpleAds: version: 1.0.2, author: PurpleAds LTD, Auto-updates disabled

wp-media

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: 1
post_max_size: 2048M
upload_max_filesize: 2048M
max_effective_size: 2 GB
max_file_uploads: 20
gd_version: 2.3.0
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.53.3

wp-server

server_architecture: Linux 4.4.400-icpu-101 x86_64
httpd_software: Apache
php_version: 8.2.29 64bit
php_sapi: cgi-fcgi
max_input_variables: 3000
time_limit: 120
memory_limit: 2048M
max_input_time: 120
upload_max_filesize: 2048M
php_post_max_size: 2048M
curl_version: 7.74.0 OpenSSL/1.1.1w
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: true
static_robotstxt_file: true
current: 2025-09-14T15:26:57+00:00
utc-time: Sunday, 14-Sep-25 15:26:57 UTC
server-time: 2025-09-14T16:26:55+01:00

wp-database

extension: mysqli
server_version: 10.11.14-MariaDB-deb11-log
client_version: mysqlnd 8.2.29
max_allowed_packet: 67108864
max_connections: 3000

wp-constants

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content
WP_PLUGIN_DIR: /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 2048M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: false
WP_CACHE: true
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: does not exist
mu-plugins: writable

jetpack

site_id: 208970862
ssl_cert: No
time_diff: undefined
version_option: 15.0:1757590698
old_version: 15.0:1757590698
public: Public
master_user: #1 blloyd78
is_offline_mode: off
is_offline_mode_constant: off
current_user: #1 blloyd78
tokens_set: Blog User
blog_token: v1Z3OCvxFiN%qTF2b)U*(fXEOPy2)Vpy
user_token: 7RACg06JaNw7a#k$j@jsyDkVD%m)izRL
version: 15.0
jp_plugin_dir: /homepages/45/d544178688/htdocs/clickandbuilds/ReallyUsefulTravelTips/wp-content/plugins/jetpack/
plan: free
protect_header: false
full_sync: {"start_action_processed":true,"cancelled_action_processed":true,"started":"Thu, 11 Sep 2025 11:40:25 +0000","finished":"Thu, 11 Sep 2025 11:40:35 +0000","progress":{"options":{"total":194,"sent":194,"finished":true},"functions":{"total":43,"sent":43,"finished":true},"constants":{"total":21,"sent":21,"finished":true},"users":{"total":"2","sent":1,"finished":true,"last_sent":"1"},"network_options":{"total":5,"sent":5,"finished":true}},"config":{"options":true,"functions":true,"constants":true,"users":[1],"network_options":true},"context":"initial_sync"}
sync_size: undefined
sync_lag: 0 seconds
full_sync_size: undefined
full_sync_lag: 0 seconds
idc_urls: {"home":"https://www.journeyintodarkness.co.uk","siteurl":"https://www.journeyintodarkness.co.uk","WP_HOME":"","WP_SITEURL":""}
idc_error_option: false
idc_optin: true
cxn_tests: {"9":{"name":"test__wpcom_connection_test","label":false,"short_description":"Journey into Darkness is not connected.: 200","long_description":"

A healthy connection ensures Jetpack essential services are provided to your WordPress site, such as Stats and Site Security.</p>

<span class="dashicons fail"><span class="screen-reader-text">Error</span></span> Journey into Darkness is not connected.: 200</p>

We recommend reconnecting Jetpack.</strong></p>","severity":"critical","action":"https://www.journeyintodarkness.co.uk/wp-admin/admin.php?page=jetpack#/reconnect","action_label":"Reconnect Jetpack now","show_in_site_health":true,"pass":false,"group":["default"],"type":"direct"}}

kadence-blocks

version: 3.5.20
last_updated: 1757615991
previous_version: 3.5.19
pro_active: No
deactivated_blocks: None
block_defaults: Yes
block_visibility: No
custom_colors: No
recaptcha_key: No
maps_key: No
mailerlite_key: No
cloud_connect: No

easy_wp_smtp

version: 2.12.0
license_key_type: lite
debug: No debug notices found.
lite_install_date: Apr 22, 2025 @ 3:57pm

`

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Incoming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions