undefined constant parts with custom sidebar
-
I’m running into a strange PHP alert on my staging site. I have a couple of custom sidebars that I’m calling on the page template like so:
?php get_sidebar(parts); ?> <?php get_sidebar(cos); ?>
They show up fine but getting an alert right before stating:
Warning: Use of undefined constant parts – assumed ‘parts’ (this will throw an Error in a future version of PHP) in /nas/content/staging/airtechsite/wp-content/themes/air2017-child/parts-page.php on line 30
Now I’m not getting those on the live site, only on the staging, which is using a different URL. Anyone know what’s causing this warning and how I can fix it? I’m running php 7.2. Thanks.
The page I need help with: [log in to see the link]
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘undefined constant parts with custom sidebar’ is closed to new replies.