Jump to content

IPB- Problem


Kaito

Recommended Posts

Hey guys i just installed a new Theme on my IPB 3.3.4  its called Dashboard now, the start page looks fine but if i try to click on "My Profile" an error pops up.

 

Error message:

 

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\board\cache\skin_cache\cacheid_4\skin_profile.php on line 1035

 

 

skin_profile.php on line 1035:

 

<span class='ipsType_smaller desc lighter blend_links'><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=profile&section=status&type=single&status_id={$status['status_id']}", "public",'' ), "array($status['member_id'], $status['members_seo_name'])", "members_status_single" ) . "'>{$this->lang->words['ps_updated']} " . $this->registry->getClass('class_localization')->getDate($status['status_date'],"manual{%d %b}", 0) . " · " . intval($status['status_replies']) . " {$this->lang->words['ps_comments']}</a></span>

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/289383-ipb-problem/
Share on other sites

What a mess.

 

You can't have single-quoted indexes in double quoted strings. You either need to leave out the single quotes altogether or use the curly brace syntax:

<?php

$some_array = array(
	'foo' => 42,
);

// This is OK
echo "The number is $some_array[foo]";

// This is also fine
echo "The number is {$some_array['foo']}";

// This is wrong
// echo "The number is $some_array['foo']";
Link to comment
https://forums.phpfreaks.com/topic/289383-ipb-problem/#findComment-1483592
Share on other sites

Try this:

 

<span class='ipsType_smaller desc lighter blend_links'><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=profile&section=status&type=single&status_id={$status['status_id']}", "public",'' ), array($status['member_id'], $status['members_seo_name']), "members_status_single" ) . "'>{$this->lang->words['ps_updated']} " . $this->registry->getClass('class_localization')->getDate($status['status_date'],"manual{%d %b}", 0) . " · " . intval($status['status_replies']) . " {$this->lang->words['ps_comments']}</a></span>
You could also rebuild the skin caches from the admin CP which will replace the skin_cache files with new ones. (Also 3.3.4 is out of date when 3.4.6 is the newest version :))
Link to comment
https://forums.phpfreaks.com/topic/289383-ipb-problem/#findComment-1483699
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.