Title: PHP parse error
Last modified: September 28, 2016

---

# PHP parse error

 *  Resolved [rbfadmin](https://wordpress.org/support/users/rbfadmin/)
 * (@rbfadmin)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/)
 * The plugin just recently started returning a PHP error on our site:
 * Parse error: syntax error, unexpected T_STRING in /home3/rslade/public_html/wp-
   content/plugins/kocuj-sitemap/kocuj-sitemap.php on line 51
 * Any insight as to a fix?
 * Thanks!

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

 *  Plugin Author [Dominik Kocuj](https://wordpress.org/support/users/domko/)
 * (@domko)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/#post-8231464)
 * Hello.
 * I can’t find an error in line 51 in kocuj-sitemap.php file. What version of plugin
   do you have?If you can, please write here what do you have in this file in line
   51 to be sure that nothing has been changed there.
 *  Thread Starter [rbfadmin](https://wordpress.org/support/users/rbfadmin/)
 * (@rbfadmin)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/#post-8231529)
 * 51 \KocujSitemapPlugin\Classes\Base::getInstance(__FILE__);
 * It looks like version 2.0, our web guy bailed so I’m trying to fix this. Thanks
 *  Plugin Author [Dominik Kocuj](https://wordpress.org/support/users/domko/)
 * (@domko)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/#post-8231550)
 * I don’t understand – maybe because my English is not perfect. You still have 
   problem and I should trying to search what’s going on or there was some problem
   on your site or server?
 *  Thread Starter [rbfadmin](https://wordpress.org/support/users/rbfadmin/)
 * (@rbfadmin)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/#post-8231594)
 * Sorry, too much information. Yes, problem still exists and I’d like to know how
   to fix it.
 *  Plugin Author [Dominik Kocuj](https://wordpress.org/support/users/domko/)
 * (@domko)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/#post-8231691)
 * OK, I understand now.
 * There are few important questions to ask:
    1) What PHP version are you using?
   2) You’ve said that the problem has started recently. Was it after some changes,
   for example, updating the Kocuj Sitemap plugin or WordPress?
 * You should know that this type of PHP error is impossible to be created by this
   line from kocuj-sitemap.php file. I think it is some problem on your server configuration
   or something else, but not inside the Kocuj Sitemap plugin. I think you should
   try to delete and reinstall the Kocuj Sitemap plugin from fresh copy from WordPress
   repository. However, if it will not help, there is nothing I can do, because 
   it looks like it is not an error in the Kocuj Sitemap plugin.
 * For me it looks like you are using too old version of PHP (below 5.3).
 *  Thread Starter [rbfadmin](https://wordpress.org/support/users/rbfadmin/)
 * (@rbfadmin)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/#post-8232893)
 * You were correct, the PHP was an older version. It’s been updated and the site
   is at least back up but now it is giving the following error:
 * Warning: call_user_func() expects parameter 1 to be a valid callback, function‘
   qtranxf_getSortedLanguages’ not found or invalid function name in /home3/rslade/
   public_html/wp-content/plugins/kocuj-sitemap/classes/multiple-languages/q-translate-
   x.class.php on line 153
 * Thoughts?
 *  Plugin Author [Dominik Kocuj](https://wordpress.org/support/users/domko/)
 * (@domko)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/#post-8233564)
 * This error is known to me, as you can see in this support topic: [https://wordpress.org/support/topic/function-qtranxf_getsortedlanguages-not-found-or-invalid-function-name/](https://wordpress.org/support/topic/function-qtranxf_getsortedlanguages-not-found-or-invalid-function-name/)
 * It has been fixed so you should install the newest version of the Kocuj Sitemap
   plugin and it should work.
 *  Thread Starter [rbfadmin](https://wordpress.org/support/users/rbfadmin/)
 * (@rbfadmin)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/#post-8235766)
 * Thanks, everything is working now!

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/kocuj-sitemap_a8c0c5.svg)
 * [Kocuj Sitemap](https://wordpress.org/plugins/kocuj-sitemap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kocuj-sitemap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kocuj-sitemap/)
 * [Active Topics](https://wordpress.org/support/plugin/kocuj-sitemap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kocuj-sitemap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kocuj-sitemap/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 8 replies
 * 2 participants
 * Last reply from: [rbfadmin](https://wordpress.org/support/users/rbfadmin/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-11/#post-8235766)
 * Status: resolved