Title: Insert Pages parse error when activating plugin
Last modified: December 10, 2017

---

# Insert Pages parse error when activating plugin

 *  Resolved [jcrich53](https://wordpress.org/support/users/jcrich53/)
 * (@jcrich53)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/insert-pages-parse-error-when-activating-plugin/)
 * I upgraded WP to 4.9.1 and began to encounter this error message as it related
   to Insert Pages:
 * Parse error: syntax error, unexpected T_STRING in /home/jmrportf/public_html/
   jmr/wp-content/plugins/insert-pages/insert-pages.php on line 280
 * I have to uninstall Insert Pages to keep my site from crashing. It worked fine
   before I updated WP. Any suggestions on a fix?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/insert-pages-parse-error-when-activating-plugin/#post-9772380)
 * I’ll look into it and get a fix out today if I can confirm the issue.
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/insert-pages-parse-error-when-activating-plugin/#post-9772402)
 * What version of Insert Pages are you running? And what PHP version? I have no
   problems with PHP 5.6.30 (5.6.30-1+deb.sury.org~trusty+1) and Insert Pages 3.2.8.
 *  [slawwwc](https://wordpress.org/support/users/slawwwc/)
 * (@slawwwc)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/insert-pages-parse-error-when-activating-plugin/#post-9772918)
 * I have the same problem. I am running WP 4.9.1 on PHP 5.2.6 (_cannot update it
   due to specific reasons_).
 * Problem started when I updated Insert Pages to version 3.2.8.
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/insert-pages-parse-error-when-activating-plugin/#post-9773114)
 * Unfortunately there’s not a great way for us to support PHP < 5.3. The last update
   included integration support with Elementor, which uses namespaces, which aren’t
   compatible with PHP 5.2.
 * Also, as a PSA, 5.2 is almost 10 years old, and reached end of support in 2010:
   
   [https://www.dotkernel.com/php-development/end-of-support-for-php-5-2-x-branch/](https://www.dotkernel.com/php-development/end-of-support-for-php-5-2-x-branch/)
 * It has over 100 unpatched vulnerabilities:
    [https://www.cvedetails.com/vulnerability-list/vendor_id-74/product_id-128/version_id-57302/PHP-PHP-5.2.6.html](https://www.cvedetails.com/vulnerability-list/vendor_id-74/product_id-128/version_id-57302/PHP-PHP-5.2.6.html)
 * So you may want to evaluate what your “specific reasons” are, since it’s rather
   dangerous to run in a public environment.
 * All that said, if you really want to keep using the plugin without upgrading 
   PHP, you can revert to version 3.2.7 of the plugin:
    [https://downloads.wordpress.org/plugin/insert-pages.3.2.7.zip](https://downloads.wordpress.org/plugin/insert-pages.3.2.7.zip)
 *  Thread Starter [jcrich53](https://wordpress.org/support/users/jcrich53/)
 * (@jcrich53)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/insert-pages-parse-error-when-activating-plugin/#post-9774650)
 * Paul
 * In response to your question yesterday, my PHP version is 5.4.45 and the Insert
   Pages version that is giving me trouble is 3.2.9.
 * John
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/insert-pages-parse-error-when-activating-plugin/#post-9776336)
 * The plugin works fine on PHP 5.4 (I tested against 5.4.45).
 * Either:
    1. Your web server is running a different version of php than you think, or
    2. The plugin source has been modified.
 * You can output `<?php phpinfo(); ?>` in any page on our web server to get the
   version of php that is running. You can also compare the line reporting the error
   with the official source:
    [https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php](https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Insert Pages parse error when activating plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/insert-pages.svg)
 * [Insert Pages](https://wordpress.org/plugins/insert-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-pages/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/insert-pages-parse-error-when-activating-plugin/#post-9776336)
 * Status: resolved