Jump to content

Siddhi Jagtap

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Siddhi Jagtap

  1. I took a look at it and found it really confusing. Will try reading it again. Thanks.
  2. I basically want to output one view for our website and then use another view(without navbars and stuff) for our app. We will just be linking the URL of the second view to our app.
  3. Hello All, I am trying something here but I am not sure if its possible. I have a Gallery page(gallery.php) using the 'gallery' template. However I want two views of the Gallery page. One with the navbar and one without. Is it possible to use the same gallery page and make this work? Thanks in advance.
  4. I finally managed to get this working. The mod rewrite for the Apache server had to be enabled and I could then log into the admin panel. Thanks a lot everyone for all the help. PW has an amazing community!
  5. I got it fixed. I had found this thread a bit related to my issue and had hence posted it here as well. Thanks.
  6. @JeevanisMI was able to migrate the website now to a different server. The website works well. However I am unable to login to the admin panel. The login page appears, but when I try to login, the page just refreshes without any error. This happens for any combination of credentials. Any idea why this might be happening?
  7. I will try doing a fresh install today and see if that works. Also if your website is http://www.jeevanism.com/bhimon, then you docroot is pointing towards the test folder yes? You would just add the bhimon after the domain address to access?
  8. @Klenkes, Ok. I will try and get that to work first. Thanks.
  9. Ok, so I tried adding some gibberish to the .htaccess file and my home page still loads without a 500 error. So maybe the server is not reading the htaccess file. My site folder is in the root directory it self. Do I still need to add anything to Rewrite base?
  10. Ok so the admin panel url sounds about right. There is a .htaccess file in the root folder. What do I need to do with it?
  11. Ok. So when I select that rename it and select the profiler, I run the installer like normal. And then after that would I need to move the site wire htaccess index.php out of the processwire folder to the document root. Would that work smoothly?
  12. Tried this for the About page. The URL echoed is /about-us/ (which is what is set under admin for the about.php page). It takes me to www.mywebsite.com/about-us/ and gives me the URL not found on server error. Also another thing I observed that on the admin panel, when I click on View for the About page, it takes me to www.mywebsite.com/test/about-us and gives the same URL not found error. The 'test' folder is where the site dir, wire dir, .htaccess and index.php files are. Essentially that is the document root where the domain is pointing. However on the admin panel as you can see that folder name is still appearing after the domain address. Could this discrepancy causing all this? Just a guess, not sure. What should the admin URL be after migration? Does that change too? Thanks.
  13. The about page is actually not a child of the homepage. They are independent of each other. I checked the above and the 'about' template has been set for the about.php page without any access issues. Also I am using stuff like <?php echo $page->about_us_img->url; ?> OR <?php echo $page->about_us_title; ?> to pull data. This is working fine on the dev server so I am not sure if it is still an issue with the code. When I am linking the pages, I have a navbar on the Homepage. It has an About Us section and I put the href value as ./about.php for example. It takes me to a page www.mywebsite.com/about.php and it is unable to find that URL on the server.
  14. I had initially tried using Profile Exporter following the same process as you mentioned. When I arrived at the installer and selected the site-the-name-you-have-given profile, it kept giving me an error saying ' Profile not found'. I ultimately gave up and did the migration manually. I actually am struggling post the migration now. I was able to map my website domain. The homepage.php file which is essentially my homepage opens on loading the domain(have included this file in my home.php file). However the server is unable to find any of the other pages. All of them are in the site/templates folder along with the homepage.php. But when I say add a link redirecting to ./about.php, the URL caught is www.mywebsite.com/about.php. This gives me a URL not found error. Also for most of the other pages, the data from the admin panel is not getting rendered. On some it does and on other it does not. It gives an error saying 'Trying to get property of non-object'. I am not sure what is going on and if I messed up with the migration. Other things I did: - whitelisted my domain in config.php -changed permissions of site/assets to read and write -changed the owner of the site folder to the apache owner Any suggestions would really help. Thanks.
  15. That worked. I cleared the site/assets/cache folder and also the caches table from the db. Thank you all!
  16. Hello All, I recently migrated my processwire website from dev server to the live server. My docroot points to a folder with has site dir, wire dir, .htaccess and index.php which works fine. There are some templates that are not getting rendered post the migration and showing the error of Trying to get property of new url. This is only on a few pages. All was working fine before the migration though. I have also edited the site/templates/home.php to include a file called ./homepage.php which is essentially the homepage of my website. This works fine too. However if I want to link the other pages to this homepage's navbar what would the href value look like? For example I want to link a page called about.php (which is in the same directory as homepage.php.), how would I do it? I tried putting ./about.php and even ./about-us(the URL set from the admin panel of processwire for this page)but none of them work. It just pulls the URL as www.mywebsite.com/about.php or www.mywebsite.com/about-us and hence shows an error saying Not Found :The requested URL was not found on this server. Also I can no longer view any pages from the admin panel as well. It gives the same 404 URL not found error. Did I mess anything up during the migration? Any help with the above is appreciated. Thanks.
  17. Thanks all. It now works find. Had to adjust the permissions of the folders. I am now trying to map my website to a live URL say www.something.com. As per a few forum posts, I put the site directory, wire directory, .htaccess and index.php in my docroot folder and also made sure to give read and write permissions to the necessary folders which is site/assets, site/modules, site/assets/cache, site/assets/files, site/assets/logs. But when I open the website domain, I get these errors. My docroot points to /var/www/html/test_website. Warning: file_put_contents(/var/www/html/test_website/site/assets/cache/FileCompiler/site/templates/home.php): failed to open stream: Permission denied in /var/www/html/test_website/wire/core/FileCompiler.php on line 400Warning: fopen(/var/www/html/test_website/site/assets/logs/file-compiler.txt): failed to open stream: Permission denied in /var/www/html/test_website/wire/core/FileLog.php on line 164 Anything I might be missing while mapping?
  18. I put the site, wire, .htaccess and index.php in my docroot folder and also made sure to give read and write permissions to the necessary folders which is site/assets, site/modules, site/assets/cache, site/assets/files, site/assets/logs. But when I open the website domain, I get these errors. My docroot points to /var/www/html/test_website. Warning: file_put_contents(/var/www/html/test_website/site/assets/cache/FileCompiler/site/templates/home.php): failed to open stream: Permission denied in /var/www/html/test_website/wire/core/FileCompiler.php on line 400Warning: fopen(/var/www/html/test_website/site/assets/logs/file-compiler.txt): failed to open stream: Permission denied in /var/www/html/test_website/wire/core/FileLog.php on line 164 Anything I might be missing?
  19. @dotnetic I gave all those three folders the read and write permissions. Also I replaced the site folder on the new server with the site folder from the old server. The templates and modules folder have been included in there too. What is the standard procedure? Do I need to install PW on the new server with a blank profile, and then replace the site folder? It seems easy, but I am still missing something.
  20. Hello All, I am trying to migrate my website smoothly from dev to prod. I followed this process: Old Server: Download the database export. Download the site folder. New Server: Install Processwire from scratch. Was able to get through. Delete the site folder and Empty the database. Upload the site folder from the old host. Import the database from the old host. Empty site/assets/cache folder and also dropped the caches table from database. Update the config.php where necessary (database credentials, etc.). Now when I open my admin panel or website, it gives a whole page of these errors: Warning: fopen(/var/www/html/GF_website/processwire-dev/site/assets/logs/exceptions.txt): failed to open stream: Permission denied in /var/www/html/GF_website/processwire-dev/wire/core/FileLog.php on line 164 Fatal error: Exception: Unable to create directory /var/www/html/GF_website/processwire-dev/site/assets/cache/FileCompiler/site/modules/ (in /var/www/html/GF_website/processwire-dev/wire/core/FileCompiler.php line 239) #0 /var/www/html/GF_website/processwire-dev/wire/core/FileCompiler.php(1068): ProcessWire\FileCompiler->initTargetPath() #1 /var/www/html/GF_website/processwire-dev/wire/core/ProcessWire.php(808): ProcessWire\FileCompiler->maintenance() #2 /var/www/html/GF_website/processwire-dev/wire/core/Wire.php(417): ProcessWire\ProcessWire->___finished(Array) #3 /var/www/html/GF_website/processwire-dev/wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___finished', Array) #4 /var/www/html/GF_website/processwire-dev/wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessWire), 'finished', Array) #5 /var/www/html/GF_website/processwire-dev/wire/core/ProcessWire.php(885): ProcessWire\Wire->__call('finished', Array) #6 /var/www/html/GF_website/processwire-dev/wire/core/ProcessWire.ph in /var/www/html/GF_website/processwire-dev/index.php on line 64 Hey now… Error: Exception: Unable to create directory /site/modules/ (in wire/core/FileCompiler.php line 239) Not sure what I did wrong. Any help is appreciated. Thank you.
  21. Hello All, I have been getting this warning at the top of every page of my website since yesterday. Warning: file_put_contents(/var/www/html/GF_website/admin/site/assets/cache/FileCompiler/site/templates/index.php): failed to open stream: Permission denied in /var/www/html/GF_website/admin/wire/core/FileCompiler.php on line 400 All was fine until then and it suddenly started popping up. Though I am able to publish and delete things from the Processwire admin panel, none of the changes I make to any of the .php files of my site are reflecting. I suppose it is due to failure to compile the file. Any help is appreciated since I am a newbie to Processwire and still trying to figure things out.
  22. I emptied the table in caches as per another post here. It works now, However, I get this warning on my website now. Warning: file_put_contents(/var/www/html/GF_website/admin/site/assets/cache/FileCompiler/site/templates/index.php): failed to open stream: Permission denied in /var/www/html/GF_website/admin/wire/core/FileCompiler.php on line 400 Any idea why this might be happening?
  23. I emptied the table in caches as per another post here. It works now, However, I get this warning on my website now. Warning: file_put_contents(/var/www/html/GF_website/admin/site/assets/cache/FileCompiler/site/templates/index.php): failed to open stream: Permission denied in /var/www/html/GF_website/admin/wire/core/FileCompiler.php on line 400 Any idea why this might be happening?
  24. Hello Ryan, Does this mean that I have to empty the /site/assets/cache folder? I suddenly started getting these errors on my admin panel today and none of the pages data seems to load. Any idea why this might be happening?
  25. Hello All, My admin panel for Processwire was working until today when suddenly it is showing these errors. I am able to log in to, but the errors appear at the top and I do not see any of my Pages. Please help.
×
×
  • Create New...