Title: PHP error
Last modified: September 4, 2018

---

# PHP error

 *  Resolved [giomorin](https://wordpress.org/support/users/giomorin/)
 * (@giomorin)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-error-284/)
 * I’m getting the following errors in my log file. The plug in seems to be working
   fine however. Any thoughts on whats causing this?
 * [Tue Sep 04 08:38:01.280131 2018] [php7:warn] [pid 1288:tid 1324] [client 192.168.0.8:
   50352] PHP Warning: Use of undefined constant pt_splitter_widget – assumed ‘pt_splitter_widget’(
   this will throw an Error in a future version of PHP) in C:\\Apache24\\htdocs\\
   secure\\wp\\wp-content\\plugins\\page-title-splitter\\pts.php on line 477, referer:
   [https://gioculinarystudio.com/wp/wp-admin/post.php?post=11541&action=edit](https://gioculinarystudio.com/wp/wp-admin/post.php?post=11541&action=edit)
   [
   Tue Sep 04 08:38:01.859428 2018] [php7:warn] [pid 1288:tid 1072] [client 24.213.249.66:
   54424] PHP Warning: Use of undefined constant pt_splitter_widget – assumed ‘pt_splitter_widget’(
   this will throw an Error in a future version of PHP) in C:\\Apache24\\htdocs\\
   secure\\wp\\wp-content\\plugins\\page-title-splitter\\pts.php on line 477, referer:
   [https://gioculinarystudio.com/wp/wp-cron.php?doing_wp_cron=1536064681.5401320457458496093750](https://gioculinarystudio.com/wp/wp-cron.php?doing_wp_cron=1536064681.5401320457458496093750)[
   Tue Sep 04 08:38:21.353491 2018] [php7:warn] [pid 1288:tid 1324] [client 69.162.124.228:
   47516] PHP Warning: Use of undefined constant pt_splitter_widget – assumed ‘pt_splitter_widget’(
   this will throw an Error in a future version of PHP) in C:\\Apache24\\htdocs\\
   secure\\wp\\wp-content\\plugins\\page-title-splitter\\pts.php on line 477, referer:
   [http://gioculinarystudio.com](http://gioculinarystudio.com) [Tue Sep 04 08:38:
   21.788249 2018] [php7:warn] [pid 1288:tid 1072] [client 24.213.249.66:54452] 
   PHP Warning: Use of undefined constant pt_splitter_widget – assumed ‘pt_splitter_widget’(
   this will throw an Error in a future version of PHP) in C:\\Apache24\\htdocs\\
   secure\\wp\\wp-content\\plugins\\page-title-splitter\\pts.php on line 477, referer:
   [https://gioculinarystudio.com/wp/wp-cron.php?doing_wp_cron=1536064701.4753859043121337890625](https://gioculinarystudio.com/wp/wp-cron.php?doing_wp_cron=1536064701.4753859043121337890625)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-284%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/php-error-284/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-284/page/2/?output_format=md)

 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-error-284/#post-10656424)
 * Hi giomorin,
 * Thank you for pointing this out, I have fixed the issue and it will be in the
   next update of the plugin.
 * This issue is caused by the ‘pt_splitter_widget’ function name not being in quotations.
 * Thank you
 *  Thread Starter [giomorin](https://wordpress.org/support/users/giomorin/)
 * (@giomorin)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-error-284/#post-10656433)
 * Thanks Chris,
    Great plugin by the way, works well and saves me from messing 
   around with code.
 *  Thread Starter [giomorin](https://wordpress.org/support/users/giomorin/)
 * (@giomorin)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-error-284/#post-10911121)
 * Hey Chris,
    I’m having an issue with the plugin update where the split part of
   the page title is showing up above the header. This is and example on the staging
   site.. [https://gioculinarystudio.com/wp/giotest2/?product=breakfast-pastry-class-november-27-2018-615-p-m](https://gioculinarystudio.com/wp/giotest2/?product=breakfast-pastry-class-november-27-2018-615-p-m)
   I went reverted back to 2.0.3 version on the live site and the issue went away.
   I’m still also getting the message as before in my error logs (PHP Warning: Use
   of undefined constant pt_splitter_widget – assumed ‘pt_splitter_widget’ ). Any
   help is appreciated thanks!
 *  Thread Starter [giomorin](https://wordpress.org/support/users/giomorin/)
 * (@giomorin)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-error-284/#post-10911316)
 * Hi again I figured out to set “Modify Titles Outside of WordPress Post Loop” 
   to “No” in the settings, and it fixed the issue of the split title appearing 
   above the header. Not sure why as it was set to “yes” in the previous version
   and it worked fine.
 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-error-284/#post-10911997)
 * Hi giomorin,
 * I will have a look and see what the difference is to cause that issue between
   the 2 versions and get that resolved. The warning issue appeared again as I made
   the update to a version of the plugin that didn’t have that update in place accidentally,
   this might be the cause to the other issue as well.
 * I will look at getting these issues sorted out and have an update this week.
 * Thank you,
    Chris
 *  Thread Starter [giomorin](https://wordpress.org/support/users/giomorin/)
 * (@giomorin)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-error-284/#post-10938283)
 * Thanks Chris,
    Looking forward to the update. This plug-in is very useful for
   my website, and I would be happy to donate for its further development. I noticed
   that the update 2.0.4 is also causing an issue in “appearance > customize” in
   the admin section, it’s showing a code in the preview, and doubling the header.
   When I deactivate 2.0.4 it goes away. When I reinstall 2.0.3 it goes away.
 *  [LM](https://wordpress.org/support/users/lavmehta/)
 * (@lavmehta)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-error-284/#post-11421327)
 * Hi, I am using 2.0.4 and still get the error when upgrading to PHP 5.6 to PHP
   7.2
 * Warning: Use of undefined constant pt_splitter_widget – assumed ‘pt_splitter_widget’(
   this will throw an Error in a future version of PHP) in /homepages/0/d657104133/
   htdocs/clickandbuilds/YLENIALUBRANO/wp-content/plugins/page-title-splitter/pts.
   php on line 478
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/0/d657104133/htdocs/clickandbuilds/YLENIALUBRANO/wp-content/plugins/
   page-title-splitter/pts.php:478) in /homepages/0/d657104133/htdocs/clickandbuilds/
   YLENIALUBRANO/wp-includes/pluggable.php on line 1219
 * Can you advise how to proceed?
 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-error-284/#post-11422129)
 * Hi,
 * I will take a look into that constant but in the meantime you should be able 
   to add the following PHP code to the top of your theme header.php file to hide
   warnings on the site.
 * <?php error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE); ?>
 * Let me know how that goes thank you and I will look to fix the issue in the next
   update.
    -  This reply was modified 7 years, 1 month ago by [Chris Steman](https://wordpress.org/support/users/15km/).
    -  This reply was modified 7 years, 1 month ago by [Chris Steman](https://wordpress.org/support/users/15km/).
    -  This reply was modified 7 years, 1 month ago by [Chris Steman](https://wordpress.org/support/users/15km/).
 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-error-284/#post-11451862)
 * Hi,
 * The issue with the PHP warning should be solved as well as the issue in “appearance
   > customize”
 *  Thread Starter [giomorin](https://wordpress.org/support/users/giomorin/)
 * (@giomorin)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-error-284/#post-11460026)
 * Hi Chris,
    This is working great, thanks! I’ll continue testing and let you know
   if anything comes up. One thing to mention, if anyone complains about the split
   portion of the title showing up in the header of the product description page,
   I found simply setting “**Modify Titles Outside of WordPress Post Loop**” to **
   NO** makes it go away. This did’t happen in the 2.0.3 version, but doesn’t seem
   to be a big deal.
 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-error-284/#post-11460456)
 * Hi,
 * Thank you for your help, I set that option to be “No” at default now when first
   using the plugin and just to let you know I am working on a fix for the image
   alt tag using the title in the customize section.
 *  Thread Starter [giomorin](https://wordpress.org/support/users/giomorin/)
 * (@giomorin)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-284/#post-11618647)
 * Hey Chris , I just noticed when adding a product with a variation, on the product
   description page there is code visible and “choose an option” will not function.
   When I disable the plug in, the issue goes away. Here is a link to an example
   [https://sharonatthebarre.com/product/barre-to-chocolate-bar-wine-tasting-april-14-2019-1100a-m-2/](https://sharonatthebarre.com/product/barre-to-chocolate-bar-wine-tasting-april-14-2019-1100a-m-2/)
 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-284/#post-11619335)
 * Hi,
 * Just to let you know I am taking a look into this and this happens when stock
   is being managed on a product, if not being managed then there is no issue.
 * Thanks
 *  Thread Starter [giomorin](https://wordpress.org/support/users/giomorin/)
 * (@giomorin)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-284/#post-11619342)
 * Hi Chris,
    Ok thanks for the quick reply. I have unchecked “manage stock” but
   the code is still showing up for me.Looking forward to the fix. Thanks again!
 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-284/#post-11619409)
 * I was using the basic WooCommerce template for products so maybe there is an 
   additional portion, I have made an update the plugin and the issue is fixed on
   my test site.
 * Let me know if you are still having issues.
 * Thank you

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/php-error-284/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-284/page/2/?output_format=md)

The topic ‘PHP error’ is closed to new replies.

 * ![](https://ps.w.org/page-title-splitter/assets/icon-256x256.png?rev=1558575)
 * [Page Title Splitter](https://wordpress.org/plugins/page-title-splitter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-title-splitter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-title-splitter/)
 * [Active Topics](https://wordpress.org/support/plugin/page-title-splitter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-title-splitter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-title-splitter/reviews/)

 * 16 replies
 * 3 participants
 * Last reply from: [giomorin](https://wordpress.org/support/users/giomorin/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-284/page/2/#post-11619413)
 * Status: resolved