News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

zCommunity 0.8.1 Beta Now available! (supports SMF 2.0 RC1 and 1.1.8)

Started by Charles Hill, June 16, 2008, 03:33:34 PM

Previous topic - Next topic

sombra


robinrobin

Quote from: GQCritic on March 20, 2009, 10:16:19 AM
I did what you requested above. It did not work and I am now getting the following errors:


2: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed
File: */public_html/zCommunity/Themes/default/index.template.php
Line: 196


I just noticed the same error in my log too, and would like to report it in version 0.8.1, not as a complaint though.

Type of error: General

...forum/index.php?action=who

2: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed

File: .../zCommunity/Themes/default/index.template.php
Line: 194

Line 194: <td align="left">', implode($context['zc']['link_tree_divider'], $context['zc']['link_tree']), '</td>

robinrobin

Well, wow... there's a million billion errors caused by zC 0.8.1 so i sure hope you guys have got those yourselves when you bug-check the mod. Kind of impractical for me to paste them all here. Most of them are "Undefined" though.

LinK187

Put it this way. I use 0.7.9 and it works fine. I have no problems. Only tweaks I may have made, if any, were theme related.

robinrobin

Mine works fine too, always did. The errors doesn't affect anything practical, it seems. But they're there, in the background, and i don't think the devs would or should stop working until the mod is completely error-free.

robinrobin

The error that says "There appears to have been a problem with the database. Please try again. If the problem persists, please contact the site's administrator." most probably have something to do with the SMF RC1-1 update. Didn't have this before it. Just a hint.

I just noticed; this only seems to affect regular members trying to view their own blogs. Both blogs that were created before the SMF update and after are affected for me.

MrMorph

Quote from: GQCritic on February 15, 2009, 06:29:53 PM
Quote from: Masterjts on February 15, 2009, 06:24:37 PM
Quote
The following error(s) occurred:
Subject cannot be blank.
Body cannot be blank.

I installed a fresh copy of SMF RC1 2.0 and ZCommunity 0.7.9A. Whenever I go to create a new Article or post a comment to an existing article I get the error message Above. If I retype the information in the new page then it posts normally. Any ideas on what is causing this problem?

http://www.obelisks.net/forum/index.php?zc

I'm pretty sure it's a bug. A lot of people have reported this issue (including myself).

Is there a fix for this ?  I can't seem to find one...

BTW, I'm using version 0.7.9 on SMF 1.1.9, I had major problems with the newest beta 0.8.1, so I went for the older one as most people seem to think it's better.

LinK187

The fix is use 0.7.9 until the dev desides to start working on the mod again. If he ever does...

robinrobin


MrMorph

Yeah he seems active on his own forum a few days back.  The problem I am having at the moment is the edit and social bookmarkings are not appearing in my theme.  They appear fine in the default theme, but not in my PS-Black theme.

robinrobin

That must mean that the bookmarking code is in each theme. Why don't you look for the bookmarking code and try comparing that file with the same one of your theme?

MrMorph

Sounds like a goo idea.  Charles (on his site) refers to a csshover.htc which may have something to do with it - I'm just researching that at the moment.

Charles Hill

MrMorph's issue with posting an article and the error of both primary fields being blank is related to the encryption of the field names using sha1('n' . $field_name . $_SESSION['zc_rand_string'])

The issue is the session variable.  What worked for some people was turning off register_globals through .htaccess

All the errors u're experiencing (the undefined index or some implode errors) are minor, but obviously you would like to have no errors at all.  You can debug those yourself manually by using ctrl+f to find the undefined indexes or variables in zcommunity, wherever they might be.

I am still developing zCommunity.  But as I've said, it is a stand alone web application (CMS), and i'll have to write a  bridge for it to SMF.  Been extremely busy doing free lance work (gotta pay the bills, you know).

robinrobin

Charles, did you mean the implode argument error with "session variable" ? Thanks for the help.

I read you with the bills there. I'll get that nice lump of donation-money to you when this recession isn't killing me and my partner.

MrMorph

Well I fixed the missing bookmarks - my themes index.template.php was just missing loading the style sheets.  Thanks to Robin Robin for pointing me in the right direction.

If anyone else has this problem with different themes then just edit that theme's index.template.php :

Find

// The ?fin11

Add in before it :

if (isset($modSettings['zc_mode']))
{
// load stylesheets?
if (!empty($context['zc']['load_css_stylesheets']))
foreach ($context['zc']['load_css_stylesheets'] as $url)
echo '
<link rel="stylesheet" type="text/css" href="', $url, '" />';
}


This is a suggested fix for :  zCommunity 0.7.9 only, I have no idea if it will work in other versions.

So that's one down.  But I have no idea about the session variable.  And would turning register_globals off have an impact on other things ???

MrMorph

QuoteCharles : The issue is the session variable.  What worked for some people was turning off register_globals through .htaccess

Eureka !  I was using my local machine's server, I looked in php.ini and register_globals was 'On'.  I changed it to 'Off' and restarted the server and now it works.  Brilliant, thanks Charles.

BTW, for anyone not sure of doing this, like I was try reading this :

http://uk.php.net/manual/en/security.globals.php

They are going to drop that 'feature' altogether as it's a big security problem.  Once I read that I decided I would definitely turn them off.  I also found my hosting service has them turned off anyway, I guess most hosts will probably be like that, but the odd few might just be the ones causing this problem.

Charles Hill

Quote from: robinrobin on June 22, 2009, 10:14:22 AM
Charles, did you mean the implode argument error with "session variable" ? Thanks for the help.

I read you with the bills there. I'll get that nice lump of donation-money to you when this recession isn't killing me and my partner.

No, the implode arguments error you are getting usually means there's a variable that's empty that is having implode() used on it.  Usually in the templates somewhere.  If you see an undefined index error referring to the same line in the same file as the implode error, then that's probably the case.

If I was depending on donations, I woulda quit a long time ago like some mod developers I've seen.  Like I said, I am making progress.  You'll know for sure big things are coming soon once I switch over my main site (degrees of zero) to zCommunity.

@MrMorph ... glad you got everything sorted out :)

MrMorph

Yes thank for your help :)

One question - polls - when I create a poll there is a link ( More Options ), presumably to add further poll options.  Only trouble is I click on it and nothing happens.  This means I am restricted to just 2 choices in a poll.

I've tried this in Chrome and Firefox.

Is this a bug and if so is there a fix ?

Many thanks.

MrMorph

I figured out a fix for the polls and adding more options if anyone needs it :

http://degreesofzero.com/index.php/topic,562.0.html

Advertisement: