Page 1 of 3

Weather template and template-switching bug

Posted: Fri Dec 29, 2006 12:40 pm
by Hokey
Hi Carl,

I tried your new weather-template but it seems not to work for me. The output was: nothing but an empty browser window. The html-code for my blog (by clicking strg+u in firefox) was also nothing. I tried both index.tpls but the result was the same.

I also had a problem to change the template back to my standard template (smallbiz). Changing templates in the backoffice doesn't work. I actually can only change templates by using the sidebar-plugin template-switcher.

I'm using the new s9y.1.1 and PHP 4.4.4.

Re: Weather template and template-switching bug

Posted: Fri Dec 29, 2006 2:04 pm
by garvinhicking
Hi!

This might be related to a problem with the themes config.inc.php file and/or PHP errors. Any chance you can investigate your PHP error log and/or turn "display_errors" on?

Regards,
Garvin

Posted: Fri Dec 29, 2006 6:31 pm
by carl_galloway
Well that's an interesting experience. Matthew and I tested this as best we could, and the only time we encountered a problem like that was when we were running this template on v1.0, however the error checking specifies at least v1.1 beta5, so maybe this is where we need to be looking. Matt is actually stuck on a mountain under a pile of snow so isn't able to help out much until probably 1st or 2nd Jan, so if Garvin is able to help you that would be awesome.

Posted: Fri Dec 29, 2006 8:29 pm
by yellowled
carl_galloway wrote:Well that's an interesting experience. Matthew and I tested this as best we could, and the only time we encountered a problem like that was when we were running this template on v1.0
Hohum. I remember mentioning exactly the same problem in an email (as far as I remember CCed to you and Matt) with 1.1betasomething in my local test blog ... Edit: BTW, my local test blog now runs on 1.1, but the weather template still won't display anything. However, I have used the 'old' preview version, so this probably isn't a reliable source.
carl_galloway wrote:Matt is actually stuck on a mountain under a pile of snow
See, that's what happens if you put weather forecasts into templates ... :wink: (I hope he's just skiing and not in serious trouble?)

YL

Posted: Fri Dec 29, 2006 8:29 pm
by Hokey
Hi Garvin,

the infosheet of my provider tells me that "display-errors" is "on" on Master Value and Local Value. But I have no idea, what to do with this information. :?

Another thing: When I change via template-switcher my adress-bar in Firefox shows the URL with a questionaire at the end:

http://blog.blokey.de/index.php?/

Hi Carl! I'm very curious about this template. It was a very nice idea to combine weather and the blog-skin!

Posted: Fri Dec 29, 2006 8:40 pm
by carl_galloway
No doubt Matt is chewing his hand off wanting to get this fixed,

@yellowled, I thought Matt solved the problem, ah the joys of cutting edge design.

@Hokey, thanks for sticking with it.

Posted: Fri Dec 29, 2006 9:50 pm
by mgroeninger
@yellowled, yeah, that sounds like the same problem you were having. Sorry I wasn't able to take a good look at it then. I had added a bunch of version checks in response to your problems, but I think there is something else going on.

@yellowled, @Hokey: Without errors it is a little difficult to know what is going on. Can either of you dig around in the config.inc.php for me?

The way I would troubleshoot this if I was able to recrete it is probably to just remove blocks of code to try to get it working. Normally I would start with big blocks (maybe remove all the stuff inside the "if" statement that does the version check), and then move on to smaller blocks.

You could also try to remove the lines which include files, to see if the problem is with them.

Unfortunately, Carl wasn't kidding about me being stuck on a mountain, but it isn't serious. We are just stuck in a hotel (and it looks like it might be a few days). Internet access is intermitten, TV access is out. It is cold and snowy outside. The stores are out of food. I don't have my cameras USB cable, so I can't upload pictures. There is no end to the problems we are facing.
:D

@Carl I still have my hand, but I have chewed up most of my gloves.
:D

Posted: Fri Dec 29, 2006 10:07 pm
by yellowled
mgroeninger wrote:@yellowled, @Hokey: Without errors it is a little difficult to know what is going on. Can either of you dig around in the config.inc.php for me?
I'll try and help out, but unfortunately stuff like this always seems to come up when I'm short in time ... I just now downloaded a fresh zipfile from Carl's website to have the latest snapshot. Unfortunately, I'm swamped this weekend, so I may not be able to help until New Year's Day, sorry.

What I can say from a quick glance at it: the apache error log shows nothing. Just like Hokey, I get an empty index page for the blog, and no source code. Plus, I can't get to the plugin configuration in the admin panel, so maybe that's a possible source of error ..? I'll fire up my editor and see what I can do with the config.inc.php ...
mgroeninger wrote:I don't have my cameras USB cable, so I can't upload pictures. There is no end to the problems we are facing.
:D
Can't be that bad if you still have your sense of humor :wink:

YL

Posted: Fri Dec 29, 2006 10:27 pm
by yellowled
Yay! We have contact. If I remove this line:

Code: Select all

$new_include = $old_include . dirname(__FILE__)."/lib".PATH_SEPARATOR ;
from the config.inc.php, everything seems to work fine, at least I get to actually see something (it doesn't display any weather info since I haven't configured that).

This is a test blog running on my local machine. It's s9y v1.1 on apache 2.0.54, php 5.2.0, mysql 4.0.24, in case that's of any importance.

YL

Posted: Fri Dec 29, 2006 10:40 pm
by Hokey
Hi all together!

Very nice theme! I can watch it now for the first time by deleting all lines of the config.inc.php from line 146 to the end (before the "?>").

I tried to delete the if-blocks step by step but the result was always a blank window. When I delete from line 149 on, so that the lines with the includes (weather_test.inc.php, sunset.inc.php) aren't deleted, the result is also a blank blank window.

Maybe this error-log-message may help you? To me it doesn't look very special. This is the output of the last two hours:

Code: Select all

[Fri Dec 29 20:26:25 2006] [error] [client 84.143.61.49] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 20:26:25 2006] [error] [client 84.143.61.49] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/quotes.gif
[Fri Dec 29 20:26:26 2006] [error] [client 84.143.61.49] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/arrow.gif
[Fri Dec 29 20:56:41 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 20:57:36 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 20:58:17 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 20:58:18 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/quotes.gif
[Fri Dec 29 20:58:43 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/arrow.gif
[Fri Dec 29 20:58:43 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/arrow.gif
[Fri Dec 29 20:58:51 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 20:59:29 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 20:59:30 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/arrow.gif
[Fri Dec 29 20:59:41 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 21:00:19 2006] [error] [client 84.63.43.9] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 21:22:09 2006] [error] [client 72.14.199.17] File does not exist: /home/www/doc/13460/serendipity/xmlsrv/atom.php
[Fri Dec 29 21:25:09 2006] [error] [client 89.57.126.4] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 21:27:52 2006] [error] [client 195.93.60.130] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif
[Fri Dec 29 21:38:57 2006] [error] [client 82.139.205.66] File does not exist: /home/www/doc/13460/serendipity/templates/smallbiz01_3col/smallbiz01_3col/{TEMPLATE_PATH}img/bar.gif

Posted: Fri Dec 29, 2006 10:45 pm
by Hokey
YellowLed's tip doesn't work for me. :-(

Edit:
After deleting these line, nothing seems to work. I can just reach my blank frontpage. :-( Switching to another theme in the backoffice is not possible. I tried to set the template back to the default-template by deleting the weather-theme, but this also didn't help.

I have to go to bed now - I will try tomorrow to find a solution.

Cheers,
Hokey

Posted: Fri Dec 29, 2006 10:51 pm
by yellowled
Hokey wrote:Maybe this error-log-message may help you? To me it doesn't look very special.
To me that looks as if you were trying to use the smallbiz template, and as if that one didn't exist on your server? :?

YL

Posted: Fri Dec 29, 2006 10:59 pm
by Hokey
Smallbiz worked for this time very well. Can't explain these messages. When I look fpr the files by FTP they are all there. :(

Posted: Sat Dec 30, 2006 12:42 am
by yellowled
Hokey wrote:YellowLed's tip doesn't work for me. :-(

Edit:
After deleting these line, nothing seems to work. I can just reach my blank frontpage. :-( Switching to another theme in the backoffice is not possible. I tried to set the template back to the default-template by deleting the weather-theme, but this also didn't help.
Hm, seems to be a different situation than over here[tm] - I was always able to switch themes, so something else must be wrong in Hokey's blog :(

Let's try to narrow it down: Can you go to the styles configuration? If so, does it list the styles, display their preview images and the switch buttons? Do you use the spartacus plugin? Does anything at all happen if you press that button to use another theme? Error messages?

YL

Posted: Sat Dec 30, 2006 11:36 am
by Hokey
Hi! Maybe I should better use my last backup.

When I go to the plugins-page in the backoffice, then the right side is empty
!? The styles-link works optically as usual, but I can't install any style. Neither installing a new style nor using an already installed style helps.

After installing any style, the styles-options are these:

Image

They appear even if I delete the weather-template via FTP. :(

Update 1:
The mediadatabase is also not reachable in the backoffice.

Update 2:
Maybe it's my provider's problem? I can't reach the webinterface-filemanger and the backup-function. This would be very bad timing.