Jump to content

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 :)) Edited by sford999
  • Like 1
Link to comment
https://forums.phpfreaks.com/topic/289383-ipb-problem/#findComment-1483699
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.