default.php missing

Permalink
I have a strange problem.

I am remaking a website I have made and creating a concrete5 site for my sister.
I have done what I am supposed to do to change the design into a C5 theme, but when I am assigning the theme to the site, this is what I get

"File /Applications/MAMP/htdocs/cellista/concrete/themes/cellista/default.php not found. All themes need default.php and view.php files in them. Consult concrete5 documentation on how to create these files."

The problem is that both default.php and view.php are both in place and as far as I can tell, everything is OK with the content as well.

Where do I begin to fond locate the problem?

djoniba
 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
If you want, you can send me the themes directory. I can check.

Rony
Senior Software & Application Developer
djoniba replied on at Permalink Reply 1 Attachment
djoniba
I have attached the folder with the theme here. I took out the images in the images folder and a folder called "JS" and ont called "Fancybox" (they are for slideshow and javaeffects in the original site).

The folder is inside tghe "themes" folder and.
Steevb replied on at Permalink Reply
Steevb
You've built with C5 before, why are you having a problem?

You've made the theme with the basic page types needed, but are they in right place?

Check your MAMP path and folders (I don't use htdocs, I use a folder called 'sites').
djoniba replied on at Permalink Reply
djoniba
They should be in the right place. I compared to my other site where I haver done the same thing (and it works). Can not see any difference.

I use htdocs. Everything is OK. The site is up and running. Just not the theme
Steevb replied on at Permalink Reply
Steevb
Theme loaded for me, but you have stray 'title tag'.
You also have a stray end 'div' tag.

Try fixing those two things first and see if it helps.

You also need a thumbnail image of your theme
djoniba replied on at Permalink Reply
djoniba
Hmm.Could not find the title tag. Toom it away and replaced with the proper code.
Was it in the header.php file?

Also, which div tag ?
mhawke replied on at Permalink Reply
mhawke
Title tag in default.php isn't 'stray' but you don't usually stuff the header_required into the title.

Line 4: <title><?php Loader::element('header_required'); ?></title>

I think the stray </div> at line 70 of default.php
mhawke replied on at Permalink Reply
mhawke
I downloaded your theme and it installed properly on my system. No problems.
djoniba replied on at Permalink Reply
djoniba
Hmm. Very strange. Almost sound like there is a problem with my MAMP. Maybe I should see if there is an upgrade?
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Yes the theme is working well. There is no problem with themes. I think there might have some problem with you C5 package.


Rony
djoniba replied on at Permalink Reply
djoniba
Very strange. The package has just been downloaded and installed no problems. The site seems fine. Only problem is the theme.

What happens now, is that if I open the mamp site, it looks fine until I log in as admin. Then I get the error that default.php and view.php is missing
mhawke replied on at Permalink Reply
mhawke
I was able to duplicate your issue if I renamed the celli folder to cellista. The path in your original post has 'cellista' in it but the theme you posted in the zip file is called 'celli'. Did you change the folder name at any time after installing the theme? Is MAMP case-sensitive?

Just some ideas.
djoniba replied on at Permalink Reply
djoniba
Just renamed the folder name when I made a copy to send to you. It is called cellista in the site.

BTW. I reinstalled C5 and dropped using header.php and footer.php. Now everything works fine :)

Except having a header that will be the same on all pages, is there any good reason to have separate header and footer files?
mhawke replied on at Permalink Reply
mhawke
Other than "that's the way we do things around here", I guess the biggest advantage I see is that when the content or format of the header or footer changes, you will have to change it on every one of your pages rather than just changing it once and calling it on every page. It's the same reason you call a single css file or js file. You could code the css and js separately into each page and it would work but development and maintenance becomes a chore because every tweak has to be copied to every page type.
djoniba replied on at Permalink Reply
djoniba
Thanks. I kinda knew that. But for some reason, when I try creating a header.php and footer.php file, something happens. I guess I just have to keep trying to find out what I am doing wrong.

Another question. Maybe I should create a new discussion for this one, but try here first:

I have a javascript called scroll.js that creates a nice scrollbar in the main content area (I do not want the whole page to move up and down, just the content). But somehow I cannot make it work now. The script is in a folder my itself called js, and the styling is in the default.css file. Is there any special way to call the script in C5?

Here is the website I am changing so you can see how it is supposed to look:http://www.cellista.no
mhawke replied on at Permalink Reply
mhawke
Seems to be scrolling fine for me.

Silly question but can't you just use css to scroll the div

<style>
jScrollPaneScrollable {width:475px;overflow-y: auto;}
</style>

or does the script provide other functionality?
djoniba replied on at Permalink Reply
djoniba
Yes, it works well on the website. it is in my C5 version I am having problems. But jScrollPane seems like a very good alternative. Will check it out. Thanks
Steevb replied on at Permalink Reply
Steevb
Sorry,

I cannot comment anymore.

It seems I'm wrong, whatever I say?
mhawke replied on at Permalink Reply
mhawke
Why are you upset?
djoniba replied on at Permalink Reply
djoniba
???

You have never been wrong before. I certainly appreciate all your comments