The included tpl file doesn't currently render any of the panel content either.

Comments

realityloop’s picture

StatusFileSize
new751 bytes

The attached patch fixes panel content rendering, the only way I can get the error to go away currently is to comment out the print $skinr part.

thill_’s picture

Because skinr is not required for fusion printing $skinr throws the error. We need to do a check for module_exists before we print $skinr.

The above patch has already been applied or was fixed at another point. The issue itself has not been fix fixed though.

g76’s picture

I am not a coder, but I applied the patch above and deleted the print $skinr from line 27, which removes the error. I am not sure if this is correct, but I am assuming it is fine to do this until skinr for D7 is more stable. If I am wrong, please let me know.

hongpong’s picture

Issue tags: +skinr

This is still an issue. Skinr should not be called if it is not active (and right now it says D7 version is raw!)

srsbl’s picture

Also getting Notice: Undefined variable: skinr in include() (line 26 of .../public_html/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php).

aquariumtap’s picture

Status: Active » Closed (won't fix)

The Skinr module is currently required to use Fusion. Please download at http://www.drupal.org/project/skinr

Anonymous’s picture

I just had this issue - I changed 'print $content' to print render($content) in panels-pane.tpl.php as in #1 and it works ok now.

srsbl’s picture

Status: Closed (won't fix) » Needs work

This problem occurs even if Skinr is enabled.

Anonymous’s picture

Yup, it's because panels-pane.tpl.php hasn't been updated to use the render api which is in drupal 7. Other templates have been - I don't know enough about front-end requirements to provide a patch, for the moment I'm just doing as above so that it works.

Anonymous’s picture

hmm... I'm now getting problems with the edit pages, they won't show at all, same error message. Have skinr installed & active!

Any ideas?

kclarkson’s picture

@realityloop,

Added your patch along with deleting the $skinr from line 27 and am now rocking.

Much love for the Patch !!!

BenK’s picture

Subscribing

osopolar’s picture

Patch is fine. What about replacing print $skinr; with if (isset($skinr)) : print $skinr; endif; in panels-pane.tpl.php?

realityloop’s picture

#13 This is better than my method, as I realise I forgot to output it if its there.

kclarkson’s picture

Can we get this committed so that we can update our modules without worrying about patches?

thanks again

csmiller’s picture

Updated fusion to a new version this morning. Error still appears, although I can fix it by implementing #13.

kclarkson’s picture

Just did the update and the error is showing as well. Please commit patch to module.

thanks

osopolar’s picture

#1 and #13 in one patch.

hongpong’s picture

Status: Needs work » Needs review

this is almost certainly RTBC methinx. not a complex patch!

stephthegeek’s picture

Assigned: Unassigned » aquariumtap
Status: Needs review » Reviewed & tested by the community

print $skinr should be removed entirely (it's injected automatically in D7). That and the update to <?php print render($content); ?> are the only changes that should be made to Fusion's current panels-pane-tpl.php.

aquariumtap’s picture

Status: Reviewed & tested by the community » Closed (fixed)
StatusFileSize
new1.32 KB

I've committed this to the DEV release. For those who rather base this off a patch, one is attached. (I recommend using "git am" to apply.) Thanks to everyone for submitting patches and reviewing, and for your patience !!

osopolar’s picture

@aquariumtap: so there is no need to print the $skinr variable?

osopolar’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
StatusFileSize
new536 bytes

This also need to be fixed in 6.x-1.x-dev. Not sure if we need print $skinr; ... I created an equal patch to #13.

osopolar’s picture

Status: Closed (fixed) » Needs review
osopolar’s picture

@aquariumtap: may you be so kind and check this patch: its just about checking if $skinr is set. If we don't need this skinr variable, we should just remove it.

aquariumtap’s picture

Assigned: aquariumtap » Unassigned
Poieo’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)