Topic: s5_suckerfish.php Shape 5 Pantheon Template error.[solved]

0 Members and 1 Guest are viewing this topic.

November 22, 2010, 11:41 AM

Offline Caffeine

  • Full Member
  • ***
  • Posts: 155
    • View Profile
I've installed Shape 5's Pantheon template and I'm getting this error:

Warning: require(/users/caffeine/public_html/components/com_wordpress/wp/wp-content/themes/twentyten/s5_suckerfish.php) [function.require]: failed to open stream: No such file or directory in /users/caffeine/public_html/templates/pantheon/index.php on line 69

It looks like the Wordpress for Joomla theme is trying to require the Joomla template.

« Last Edit: November 22, 2010, 12:02 PM by Andy »

November 22, 2010, 11:56 AM

Offline Andy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1,739
    • View Profile
This error occurs with some Shape5 templates (as well as others such as Youjoomla).  The reason this is happening is because there is a constant called "TEMPLATEPATH" that Wordpress uses throughout that these Joomla templates are also using.  We cannot change the name of the constant in Wordpress because we would lose support for Wordpress plugins and themes.

However, we CAN change it in the Joomla template. Open up all of the PHP files in the directory where your Joomla template is  ([Your Joomla site]/templates/[name of your template]/) and look for TEMPLATEPATH and rename it to something like S5_TEMPLATEPATH.  Frequently, the only file you will have to change is index.php.

I know there's at least one of them on line 69 of /users/caffeine/public_html/templates/pantheon/index.php and I suspect it gets defined somewhere near the top of that index.php file.

Kindest regards,

« Last Edit: February 10, 2011, 09:52 AM by Andy »
Andy Poorman - Support Manager / Developer
http://www.corephp.com'corePHP' - Accessibility Experts

— Professional Support: Support Tickets

November 22, 2010, 11:59 AM

Offline Caffeine

  • Full Member
  • ***
  • Posts: 155
    • View Profile
Fixed!

If anyone else has this problem with the Pantheon template, the other TEMPLATEPATH variables were on lines 2, 65, 69 and 75.

Thanks again!

January 10, 2011, 11:43 AM

Offline Hemingway

  • Newbie
  • *
  • Posts: 6
  • 'corePHP' - Unlock your Full Potential!
    • View Profile
    • dv-arts
This does not work for Shape5 Comaxium template. I've changed the index.php file from TEMPLATEPATH to S5_TEMPLATEPATH, as suggested. I find no change at all. I still get: Shape5_Comaxium_template     Stylesheet is missing.

This must be something simple but I've been trying for a day and a half to fix it using what I've seen on the forums. Frustrating.

January 11, 2011, 05:28 AM

Offline Andy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1,739
    • View Profile
Fixed.

FYI, if you navigate to that directory via Linux/OSX, you can run this command and it will fix the issue in the directory from which it was executed and rescursively:

Code: [Select]
find . -name '*.php' | xargs perl -pi -e 's/TEMPLATEPATH/S5_TEMPLATEPATH/g'
Kindest regards,

« Last Edit: May 14, 2012, 09:01 AM by Andy »
Andy Poorman - Support Manager / Developer
http://www.corephp.com'corePHP' - Accessibility Experts

— Professional Support: Support Tickets