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?
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?
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.
The folder is inside tghe "themes" folder and.
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').
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').
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
I use htdocs. Everything is OK. The site is up and running. Just not the theme
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
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
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 ?
Was it in the header.php file?
Also, which div tag ?
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
Line 4: <title><?php Loader::element('header_required'); ?></title>
I think the stray </div> at line 70 of default.php
I downloaded your theme and it installed properly on my system. No problems.
Hmm. Very strange. Almost sound like there is a problem with my MAMP. Maybe I should see if there is an upgrade?
Yes the theme is working well. There is no problem with themes. I think there might have some problem with you C5 package.
Rony
Rony
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
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
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.
Just some ideas.
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?
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?
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.
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
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
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?
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?
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
Sorry,
I cannot comment anymore.
It seems I'm wrong, whatever I say?
I cannot comment anymore.
It seems I'm wrong, whatever I say?
Why are you upset?
???
You have never been wrong before. I certainly appreciate all your comments
You have never been wrong before. I certainly appreciate all your comments
Rony
Senior Software & Application Developer