thedigicraft / Atom.CMS

Atom.CMS
56 stars 50 forks source link

Page manager not properly working #177

Closed Chriswilldo closed 8 years ago

Chriswilldo commented 8 years ago

So basically, the pages still save on the admin end, but won't update to the front end. I tried to ediit one of the pages and I can tell that there's some disconnection somewhere. For instance, if I change the page names and everything, I still have to go onto phpmyadmin to change the url or else it doesn't work. As for new pages, it would seem as though I would need to manually put it into phpmyadmin before creating the page. In reality it wouldn't be too much of a hassle, but from my memory it worked just fine before.. :'( So plz Digicraft.. Fix my web..

Chriswilldo commented 8 years ago

It's been since last June since I worked on this. Thought it wasn't finished, but then remmebered that I was trying to use the new dropzone on this website and something else.

JorgeBautista commented 8 years ago

Came to open a new issue on the same problem, adding or editing pages, nothing happens on the front end. site1 site2 site3

creptor commented 8 years ago

try looking into issue #172, maybe that's your problem.

Chriswilldo commented 8 years ago

idk exactly what you mean. Based on my understanding, my setup.php looks fine. It might be something else. Because when I delete the page it shows it deleted in firebug, but not on the page. Also when i add the page it doesn't have have that php style like it should. It's just a basic green. It might have something to do with the coding there perhaps? Sorry I haven't done this in a while so it's kind of a pain to find exactly where the problem is. Heres my setup.php and the pages part of queries.php. I'll be sure to check the final coding as well.

Chriswilldo commented 8 years ago

queries php setup php

creptor commented 8 years ago

Please use something like http://pastebin.com/ to submit your code, images are just too slow, and a pain. Also please include setup.php, query.php and the page administration page.

creptor commented 8 years ago

Sorry for the delay, I forgot I had this issue sent to my email, and that it was marked read.

creptor commented 8 years ago

O and please upload the Ajax files, if you want help with those

Chriswilldo commented 8 years ago

http://pastebin.com/u/Chriswilldo

Chriswilldo commented 8 years ago

I put whole ajax folder files into one to save time and space since most of them were only a paragraph of code

creptor commented 8 years ago

Are your page contents filled when you select the page (when editing)?

creptor commented 8 years ago

I got this version of your query.php fixed (only for pages, you must fix the rest), and I couldn't fix the ajax, because no javascript was included in the files you gave me (for the pages administration page).

http://pastebin.com/ZFK0b2Dx

The updates where highlighted.

Chriswilldo commented 8 years ago

Well thank you still. The page still gets created and filled and everything, it's just it doesn't get added to the front end unless if I manually add it in like how you taught when first building the site. Then it works. Which in all isn't all that bad. At least it works right? I can still edit it on the admin and afterwards and it'll still work just fine, I just have to manually input the page on phpmyadmin

creptor commented 8 years ago

You should then check that the myqli is returning no errors.... that can further help you building a site.

Also you should enable php errors hardcoded to your script, to be sure that it's enabled. Just add an error_reporting(-1); to the start of the file, it will return more detailed information about php errors. This can make them easy to fix.

I also recommend that you upload your javascript, because maybe the ajax was working instead of the query.php (that's fixed), and that the ajax is making that awful result. (which is what I believe)

queky18 commented 8 years ago

Hello friends,

Have you fixed your isssues ? because I get the same problem , and I can't fix it ..

creptor commented 8 years ago

Please create a new issue with your code... The problems that involves database connection usually aren't related, or have a different way of fixing.