Kaito Posted July 2, 2014 Share Posted July 2, 2014 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§ion=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 More sharing options...
Jacques1 Posted July 2, 2014 Share Posted July 2, 2014 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 More sharing options...
Kaito Posted July 2, 2014 Author Share Posted July 2, 2014 Tried now anything but still not working D: can anyone help pls all things are working fine just the dumb my pofile not because of this ._. im just gettin crazy id pay for this fix if anyone help D: Link to comment https://forums.phpfreaks.com/topic/289383-ipb-problem/#findComment-1483597 Share on other sites More sharing options...
sford999 Posted July 3, 2014 Share Posted July 3, 2014 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§ion=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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.