Closed Chriswilldo closed 9 years ago
the description of the error you're giving me is kind of poor, I can't figure out wich is your problem because i cant anderstand you, please be more precise in what doesn't work, where is not working, how is it different from the video, and if you have and url (online host) give it to me so I can see the problem. Any extra info about this error will help, and try to keep it simple, one error at a time.
Sorry about that. I'll upload screenshots of what i mean.
It shows the Home Page just fine...
But it shows nothing when I got to the about page.
And I can't seem to edit the page usings my page manager. Instead it just adds the page instead of editing it....
can't see the error there, please just describe your problem and how it should be working. like: the urls seems to be missconfigured so I can't get the right pages, or The content is not display has it is on my db. If you need more info of your error enable error reporting from php, that usually gives pretty acuareate errors.
I updated the comment I posted above you. Other than that, everything seems to be working fine. The only two main issues is that my page manager isn't working; won't edit, and my website will only show the Home page's content.
Debug and Navigation works fine. I can still switch Home and about, but the actual content for the about site won't show up. Also view array doesn't show on debug but I'll fix that if needed.
The conent for About and contact exist on page manager, but for some reason it doesn't want to show up...
...
If you need to see my coding for anything let me know.
I guess my main question is, do you think it's fixable, or am I going to have to restart all over?
I know what it is, thank you for giving me that good question. In the endings of the videos the function for the pages was change, so maybe you change them in the wrong file. so you tought you were changing the admin version but you were changing the web version please check that. PD: everiting can be fix except death :smiley: I'll be here tomorrow because it's really late. GMT-3
I am not entirely sure on what you mean. Where part of the series are specifying about?
in the series he changed the functions page to data_post in the data.php, please give me that file along with your setup.php for the admin and for the normal pages please. (also please use pastebin)
Ah. Well I think that is the issue indeed. Here you are sir, i posted my data.php and setup.php on pastebin. Both the admin and non-admin versions to compare the both. Because I do believe that I got the two mixed up at one point. I also somehow have 100 hits on those files on pastebin. Not sure what that means but I'm guessing views? Already?....
I can't find your issue :cry:, could you try to remove that error_reporting to see what error does it throw out in the broquen pages? or use: error_reporting(-1);
I have a same problem with @Chriswilldo. I think the tutor forgot to connect the navigation and pages. I think he tried to setup navigation as menu bar on the front page and the 'posts' as sub-pages under that menu created from the navigation. So the navigation is showing up in the frontpage rather than the initial pages created in the video up to about 60(? i think). I am not sure but the 'post_type' is related to the main page and sub posts. PLEASE HELP US
please use that error_reporting(-1);
as a replacement to the error_reporting(1);
or 0 wathever and tellme wich error do you get. I can't fix it if you don't give one, because I can find the code mess up :cry:.
I do seem to remember forgetting something in the navigation at one point. I will have to watch the videos when I am at home to be sure.
Thank you so much @thedigicraft !!! Your tutorials were amazing and hope you continue!
I think we brought the front menu from the navigation in our server. But the front page index is not pulling the page from the navigation.
Thanks @huniz !
I am in agreement with @creptor. Try running this with the error_reporting(0);
. That way we can see if there are any errors. Specifically within your queries. I looked at your data.php and it seems to match up with the one here on github.
One thing I did notice is your URL. The directory in which you have saved this CMS has characters in it that do not always jive. Try taking out any spaces and/or special characters such as # out of your url.
Also. Could you get me a screenshot of the debug panel that includes the $path
array please :-)
The files are exactly the same with the most recent files on the Github. Sorry that I am not able to grab screenshots.
So my point is that how can I write something on the front pages created from navigation?? The most recent pages are set to the sortable navigation and I am not sure about how to connect them to actual working php Since the page manager is not making them change or edit (I think the front pages are from 'navigation' database.
Another thing to have in mind... the pages actually have a page type thing, where you define wich page file it should load to display it's content, please meake sure the values have been correctly introduced to your database. That could make pages not visibles(or at least the title, content, etc) but everyting else work.... just like in your screenshots, where the index works but the others just display the navigastion and the footer
alright so i got good news and bad news. The good news. I found the problem. The bad news. I am not entirely sure on how to solve them. By the way error reporting -1 helped me find those problems. Sorry for not doing this earlier. I forget to check my emails sometimes. It seems that I have a lot of errors...... It seems that I messed up a lot in my sandbox.php. I shall paste my pix below.
Home
Contact me
The Abouts
Page Manager
User Manager
wow those pages look awful :C I'll look into then in a minute please wait :3
Why thank you. Hahaha alright thanks. And if you need to see the specific coding for those lines let me know. Matter of fact I'll just show you them just in case
allrigth, please read that, it's related to the problem you're having with the pages.... https://github.com/thedigicraft/Atom.CMS/issues/100#issuecomment-76544014 It's just what I published
That sandbox error is common in the way the page haddles things
add this if(!isset($opened)){$opened=NULL;}
to the confing.php in the admin section to remove that error, and check the ON SUBMIT erros, not just the page, you actually have to submit something to display query errors.
Yeah about that... is there a config.php? Because I don't have one.... do you mean. setup.php?
this is the file in this repository: https://github.com/thedigicraft/Atom.CMS/blob/master/admin/config/setup.php
It's called setup.php
So i added that code but it doesn't show the error anymore nor did it solve it. I'm gonna re-compare my code again to see if that'll fix some of the errors.
Another thing. When I was simplifying the index.php I was having a lot of trouble making it work. Now it seems like that issue is still somewhat present. Any suggestions or is this as hard to fix as i thought? Because these errors don't seem to be showing the true error.
I would like to stay in the issue, if you're having another you can create other and work on both at the same time, please do it to keep things organized.
I think i might start over to see.
allright, sometimes is the best and necesary way to find errors
So I finished the series, and almost everything works fine, however on the front end of the site, only my home page will load up. about shows nothing when u click it and same with contact. It's almost as if you can't change it using the back end because when i tried to with the page manager it doesn't work. If i try editing it, it'll just say page added which shows true on phpmyadmin, but it doesn't actually update the site. It's almost like the front end and back end of the site aren't coding correctly to each other. If anyone knows what the issue could be that'd be swell. Ive re-checked my coding a lot and I don't think I made much mistakes overall.