barikman
Junior Member   Posts: 22 Registered: 9/29/2003 Status: Offline
|
posted on 12/19/2003 at 05:46 PM |
I've run into an odd problem when installing a theme from Mars at
Predatorial Tendencies. Only the right blocks are generated (or the centre
blocks for pages where there are no right blocks, such as the PN admin
menu).
I've mulled this over with Mars for a while, and various things have led us
to believe that I have a problem with my AT Lite installation or even my PN
set up.
For example, I tried AT-Corp as a test, and all of the blocks were
generated, but in the wrong order. Left blocks were generated as a top row
on the page, centre blocks as a centre row and right blocks as a bottom
row.
Weird.
Now the site in question is a live site, currently running a Webvida AT
theme (wvHarmonyX) without apparent problems. However, this theme did not
require me to install AT Lite so this is the first time I've tried it.
Current setup
PN .726 & At Lite + PN pack downloaded 16 December.
Where do I start with debugging this one please Shawn? I've obviously done
something really daft but I haven't a scooby what it is.
|
| |
| |
Shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Online
|
posted on 12/19/2003 at 05:58 PM |
I'm not sure about Mars' theme, but AT-Corp is supposed to display that way

It is meant to show the flexibility of AutoTheme and that you can put
blocks anywhere you want and horizontal or verticle.
-Shawn |
| |
barikman
Junior Member   Posts: 22 Registered: 9/29/2003 Status: Offline
|
posted on 12/19/2003 at 08:26 PM |
AHA! Mars thought otherwise!
OK - back over to him then. Sorry to have bothered you. Ho hum!
Cheers
Phil |
| |
barikman
Junior Member   Posts: 22 Registered: 9/29/2003 Status: Offline
|
posted on 12/19/2003 at 10:16 PM |
I gave Mars short-term admin access to my site and let him have a prod and
a poke. He's completely certain that my problem is my PHP version
(4.1.2).
What is your recommended minimum PHP version please (had a quick look round
your site and failed to find it)? I'm leaning on my hosting company for an
upgrade, and it would help a lot if I know where I needed to get to.
Cheers
Phil |
| |
Shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Online
|
posted on 12/20/2003 at 12:51 AM |
AutoTheme only requires the minimum that is required by PostNuke so I don't
publish that, but I strongly recommend 4.3+ for many reasons. Security,
stability, features, security, security 
Post a link and I'll look.
-Shawn |
| |
barikman
Junior Member   Posts: 22 Registered: 9/29/2003 Status: Offline
|
posted on 12/20/2003 at 08:54 AM |
Site is toomuchcoffee.com . I've put a phpinfo page in the web
root if that helps.
Mars had a play with the AT admin function and said it kept throwing parse
errors. Is that likely in these circumstances?
|
| |
Shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Online
|
posted on 12/20/2003 at 03:29 PM |
O.K. yes, that is a bug in a function that is supposed to let you run
AutoTheme on old PHP versions:
In modules/AutoTheme/includes/phpFuncs.php
You must change:
while (list($k, $v) = each($var)) {
$result .= " " . var_export($k)." => " . var_export($v).",\n";
$result .= ")"; //move this to after the }
}
break;
To:
while (list($k, $v) = each($var)) {
$result .= " " . var_export($k)." => " . var_export($v).",\n";
}
$result .= ")";
break;
-Shawn |
| |
barikman
Junior Member   Posts: 22 Registered: 9/29/2003 Status: Offline
|
posted on 12/20/2003 at 05:33 PM |
Thanks Shawn, I've made that change.
Now I'm going to put you on the spot. Is it likely in your opinion that
being stuck on this old version of PHP is what's breaking Mars' theme,
given that as far as I can see AT-Corp works for me but on the other hand
clearly subblack3d works for Mars and lots of other folks?
Footnote : longer term I intend to get a copy of full-blown Autotheme and
to do a theme of my own around my site's subject matter. However, this
debugging process is very helpful as a learning process. Thanks very much
for your support in this. |
| |
Shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Online
|
posted on 12/20/2003 at 05:59 PM |
O.K if you do it quick, send me an admin name and password and tell me
exactly what blocks should display on what pages. Also, include a zip of
the theme, exactly as it is installed on your server.
-Shawn
autotheme AT mckenzies DOT net |
| |
barikman
Junior Member   Posts: 22 Registered: 9/29/2003 Status: Offline
|
posted on 12/20/2003 at 07:03 PM |
Done |
| |
barikman
Junior Member   Posts: 22 Registered: 9/29/2003 Status: Offline
|
posted on 1/7/2004 at 11:53 PM |
Hi Shawn
Thanks for visiting my site just before Christmas and playing with my AT
Lite config.
I made the fix you posted and restored the theme.cfg like you said.
Was that supposed to do something? Sorry I'm confused. All is as it was
unfortunately. Mars' theme still does not work on this site (although it
does work on other test sites I've built).
Where do I go from here please?
Cheers
Phil |
| |
barikman
Junior Member   Posts: 22 Registered: 9/29/2003 Status: Offline
|
posted on 1/26/2004 at 06:38 PM |
OK, well I've had to give up on this idea, what with the theme not working
at all on my site and other themes working just fine I needed help. Sorry
if I didn't understand what you did for me Shawn, and please don't think
I'm not grateful, it's just that I have too much else to do with keeping
the site running and moving it to a new dedicated server.
Perhaps when the ContentExpress chaps release the new Autotheme-friendly
version of their package I'll be back to buy Autotheme. I've removed your
admin account from my site.
Cheers for now
Phil |
| |