Creating my first template

valerie

no, the database always reinserted the files, even when I uploaded a different template, so I just deleted the database and made a new one. Problem solved. Don't know what I would've done if I had data in it that I needed.

Glad it helped you, though. That's why I wrote it all...

Tau

Hi again

When a read Valerie's Error description and my own I wondered if maybe some old files in the temp folder was doing something wrong.
Then I started up my FTP program (Dreamwiever) and deleted everything in the tempfolder on the server.
Then I uploaded the mytemplate_en.zip file.

And now it works!  :-)

Conclusion up till now: Clean the tempfile if you get a blank page when you try to uplaod a new template!

Does the same action solve your problem, Valerie?

Tau

Tau

Quote from: doc on October 03, 2008, 03:02:01 PM
Hello,

if you are running WB 2.7 enable error reporting via Backend -> Settings -> show advanced options. Set error level to E_ALL and try again. If save mode is enabled, you should see some error notices which you may post here for further help.

Christian
Hi

I did as you suggested and result is this:

"Parse error: syntax error, unexpected T_DNUMBER in /customers/steinov.dk/steinov.dk/httpd.www/temp/unzip/info.php on line 5"

Does that help you to find a solution?

Tau

valerie

#17
I have this problem too. It's a clean install of WB I did yesterday and I installed a couple of templates fine. THen today I tried and I get the blank screen with every one I try, including the mytemplate_en.zip file in the official tutorial. On both that one and the templeron.zip one, which is the first, most downloaded template in the repository the error message says:

Parse error: syntax error, unexpected T_STRING in /home/.../public_html/.../wb/temp/unzip/info.php on line 29


So I went and looked in that folder and there are files there from an earlier template I did that had an error in the info.php file at line 29 (I wasn't thinking and put an apostrophe in the description). I can't uninstall the invalid template through the wb admin since it never installed and isn't in the list. I tried to delete via ftp, which worked, but any subsequent template install--even different ones--result in the tmp/unzip folder being populated with the invalid template's files, not the one I chose to install.

So then I thought it must be that I have to delete the invalid template info out of the database. I went to admin tools>reload addons>templates. I tried another install with the mytemplates file from the WB tutorial and still got the error message about the bad info.php file. Is there another way to get this info out of the database or should I go to phpmyadmin next?

Thanks!

doc

Hello,

if you are running WB 2.7 enable error reporting via Backend -> Settings -> show advanced options. Set error level to E_ALL and try again. If save mode is enabled, you should see some error notices which you may post here for further help.

Christian

Tau

I have the exact same problem as stormsvimmer.
I've tried installing several different templates even the newest ones from the WB website, but I still just get a blank page...
I think the server has PHP save mode turned On.
Could that be the problem?

I am so much forward to finding the solution. :-P

Tau

johnp

As per my last post https://forum.WebsiteBaker.org/index.php/topic,9946.msg58517.html#msg58517
The template I uploaded to you here https://forum.WebsiteBaker.org/index.php?action=dlattach;topic=9946.0;attach=2025
should of worked. I tested this on local box and on two different servers, The template installed, worked and uninstalled flawlessly.

If you find you are still having problems try to post a little more info here..

Availor

Quote from: marathoner on June 10, 2008, 04:19:21 AM
Quote from: stormswimmer on June 09, 2008, 09:23:21 PM
I changed all of the permissions to 777 and it didn't solve the problem
Do you already have a template by the same name that might be causing a conflict?
Even if so, it should be replaced and upgraded. The same name should not be the problem

marathoner

Quote from: stormswimmer on June 09, 2008, 09:23:21 PM
I changed all of the permissions to 777 and it didn't solve the problem
Do you already have a template by the same name that might be causing a conflict?

Availor

The template works fine on my website, so I guess you are doing something wrong or maybe you have something else that is causing the problem.

Don't despair, it's much simpler than you think. If it's getting too complicated just leave it all and start over.

Do it logically, can you install other templates you downloaded from the template repository? Try to download a ready-made template and install it. If it works then the problem is with your template. If it doesn't work then the problem is not in the template. As I've said before it installs fine on my website.

Try installing a different template and see if it works, then post here the result.

Good luck.

stormswimmer

I changed all of the permissions to 777 and it didn't solve the problem

johnp

#9
Quote from: stormswimmer on June 07, 2008, 11:33:36 PM
That is what I have been doing. When I click install, I am redirected to a blank page with just the WebsiteBaker headline. These files were archived using OS X could that be a problem?


I have uploaded a zip file for you to try of the template you are trying to upload. I have made some changes to the info.php fie and added correct code into the index.php

when you open this version you should see difference.

Also check the following folder for the correct permissions(755 or 777)
languages
media
modules
pages
temp
templates

tested on two different servers and the template.zip file will upload

to upload goto admin>add-on>templates> 
select browse select the template.zip file click ok then click install
you should then see successfully installed.

Then goto settings under default settings you should see templates and you should see


I also noticed you are usung
<?php echo page_content(2);  ?>
should look like
<?php page_content(2);  ?>

[gelöscht durch Administrator]

stormswimmer

That is what I have been doing. When I click install, I am redirected to a blank page with just the WebsiteBaker headline. These files were archived using OS X could that be a problem?

Availor

It installs just fine, I've shown you the link I've installed your template. Maybe you are not installing it right.

You must go to the templates and choose the zip file from inside your WB, then it should be installed. You should not upload it by FTP or anything. Just go to your admin panel and click on the zip file (don't unzip the files).

That's all.

stormswimmer

#6
I know it is my first attempt. Thank your your help. However, I still can't install it.

Availor

Eventhough your template will install it's not made very good and it will not work properly.

See the demo I've installed.

http://www.videoxone.com/WebsiteBaker/pages/tests/test-template.php

You should redesign it.

Availor

Ok, now it installs for sure I've tried that on my own website.
I think it's because you placed <!-- --> inside your info file - it should be /* */ tags inside css.

Try now.


[gelöscht durch Administrator]

stormswimmer


Availor

Looks like you have zipped the folder containing another folder.

Try to install now.

[gelöscht durch Administrator]

stormswimmer

Hey everyone,

I am trying to create my first template. I need it to mirror www.balanceyourmetabolism.com. For some reason the files I have created are not being installed. I am attaching the files. Could someone look at them and tell me what I have done wrong?

Thanks

stormswimmer

[gelöscht durch Administrator]