Jump to content

shogun

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by shogun

  1. I wonder if you actually have permissions to those folders. Maybe worth checking that first to be sure. I've had so many issues with read write server permissions on various folders multiple times over.
  2. Solution: It wasn't a processwire issue. I found out my server does cache PHP files so any changes made on the server I need to clear cache afterwards. That's why my site/onfig.php never got updated! NGINX server requires this for the cache clear: sudo -S service php7.3-fpm reload 9>/tmp/fpmlock
  3. It's a lemp stack server so nginx. I noticed when I went to the processwire dashboard later this evening it was reflecting the new database properly. I was switching between a staging processwire dashboard and production process wire dashboard on the same server in my browser. Deleting pages in staging and it was happening on the production but I know for a fact their config files are different. But then later tonight the deleted pages didn't appear in my production admin dashboard which was correct. Maybe the front end web page of my admins were being cached in between the two. I really don't know now what was going on. I'm going to try again tomorrow and see what happens. Strange. Maybe the server was caching the dashboard.
  4. I've updated the database info in the config.php, but I can tell on the site, it's not using the new one. Ive even completely deleted the database credentials in the config.php and the site is not affected. Is there a config.php cache somewhere. I restarted the server also. Nothing. It's still using the old database. Changing the database name here but the site is still using the old database on the backend. $config->dbHost = 'localhost'; $config->dbName = 'dbname_new'; $config->dbUser = 'xxx'; $config->dbPass = 'xxx'; $config->dbPort = '3306';
  5. I was googling this and came across this. Here's the solution I came up with if it helps anyone. The module above crashed for me so I wrote my own. If you have a lot of pages it may not work as well, but after a few seconds it deleted 1700 pages for me under a specific template. Just run this on a processwire page: Here's my solution (use at your own risk :) : $page = $pages->get(1019)->children(); foreach ($page as $child) { $child->delete(); } //1019 was the ID of a master template page that had all the children. Hope this helps!
  6. But I think that puts them in textfields still. I was looking for just text. For example, a hyperlink is submitted and I'd like to just display it as a clickable hyperlink not text in an input field within the dashboard.
  7. That would be great. I will definitely need this!!
  8. omg dumbest mistake. I had a css style hiding the view button in the dashboard from a previous project. Just removed the css and all good now! I did this previously because there was an admin page I didnt want it to be viewable for the client.
  9. This has been driving me crazy. Typically there's a view page link when you click a page on the admin dashboard. For some reason none of my pages show the view link in the admin section. All pages are published and the admin has full access. Any thoughts on how to make sure view page shows?
  10. I'm creating pages in the backend of processwire just to store some information using fields. But the fields are presented as editable form input fields. Is it possible to make the fields as html text instead or maybe I can just redisplay the value in a html label above each field?
  11. Update, this was a nightmare. After messing with it for hours, my solution was to completely scrap the built in class. Ended up using dropzone js and custom php to upload the file into the appropriate directories. good luck if you come across this years later! Cheers
  12. I'm doing it through an ajax jquery post as well, maybe that has something to do with it.
  13. Going crazy, I have a simple script pulling a file from an html form and sending the file to a template/ directory No errors at all, but the file just wont save in the directory HTML <input type="file" id="formdata_video_upload" name="formdata_video_upload" > PHP $video = new WireUpload('formdata_video_upload'); $upload_path = $config->paths->templates . "videosubmissions/"; $video->setMaxFiles(1); $video->setMaxFileSize(10485760); $video->setOverwrite(false); $video->setDestinationPath($upload_path); $video->setValidExtensions(array('mp4')); // execute upload and check for errors $videofiles = $video->execute();
  14. I mean a place to store all the submissions in the processwire dashboard
  15. Processwire is awesome, but I'm wondering is there a way to have a web form submission page with multiple fields logged into the backend after submission somewhere in the processwire dashboard for a client user to look through?
  16. Yup. I added a trailing slash to the url and it worked. Not sure why
  17. Strange it worked after adding a trailing slash to the end of the URL. Simple thing like that took hours to figure out
  18. For the first solution Im stilling getting the forbidden error after moving the php file to the site directory. Here's my console after ajax submission to the contact.php file. I need to access processwire page variables from this file also.
  19. I think the module I found below does the job. The main limitation is that it only allows you choose one Branch to restrict a user to. That works for me now, but ideally it should allow you to choose multiple branches to restrict a user to. http://modules.processwire.com/modules/admin-restrict-branch/
  20. I don't want to hide the entire tree. I want to restrict a user to view and edit only a specific tree like this: User 2: So they can only see/edit the page 2 tree below for example and not page 1 Home > Page 1> Page 2 >
  21. I would like a user to login to the admin and only see certain pages. I cannot figure this out or if it's possible. I've hunted through the forums and nothing seems to be able to do this. I have a list of pages like this: Home> Page 1 > Page 2 > I would like User 1 to login and only see: Home> Page 1 > And User 2 to login and only see: Home> Page 2 >
  22. You add wordpress to just the sub-directory. Not excited about wordpress anyway, but that's how you can do it.
  23. Hmm interesting. So you're thinking just install processwire in its own subdirectory?
×
×
  • Create New...