Jump to content

JeevanisM

Members
  • Posts

    223
  • Joined

  • Last visited

Posts posted by JeevanisM

  1. On 10/5/2021 at 5:12 AM, Siddhi Jagtap said:

    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 400

    Warning: 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?

    @Siddhi Jagtap is this still an issue for you ?  thought you have fixed it. 

  2. 5 hours ago, Siddhi Jagtap said:

    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?

    Well, 

    I created the folder ' bhimon', then uploaded the PW zip file and extracted it. It will have a folder named processwire but I had to move everything outside of it, so that every files will be in the 'bhimon' folder. Then I called the installation such as http://www.jeevanism.com/bhimo

    this will start the installation and went everything good. I could access my website and my admin URL . 

     

    Quote

    You would just add the bhimon after the domain address to access?

    well, yes if your 'folder' name is 'test' then you will have to add that at the end of the URL. 

    1 hour ago, Siddhi Jagtap said:

    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?

    please try to enable the debug mode on, so that you can see if there any errors. On the client side, check any errors happening in FireFox/Chrome developer console. 

  3. 3 hours ago, Siddhi Jagtap said:

    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?

    I dont understand this fully, but ideally, all your PW related files/folders should be inside that ' test ' only, if you want this website work in the subdomain way. If the website should be as the main domain, all your PW files should be the public_html folder (docroot), whichever the case, you should do this in the installation steps, not after that .

     

    to give you a clear understanding, below is my folder structure , bhimon is my subfolder where I installed my PW backup and website is accessed as 
    http://www.jeevanism.com/bhimon

    image.png.94684e854de1f1c95779c91a4ccfed11.png

  4. 1 hour ago, Siddhi Jagtap said:

    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?

    hmmm,  we seem missing something obvious. lets see..

    • try installing a fresh latest master branch of PW in the folder ' test ' in your server root (inside public_html if you are in cpanel )
    • if this works, you should access the admin :  http://yourwebsite.com/test/admin (you can give different admin name if you want)
    • try to see the pages and if it works 

    if the above works - you can try same method but this time install your actual site profile backup (taken from your development ). So you can rule out issue of the server problems. If the issue persists, its something mal-configured in your site profile. you can enable debug inside site/config.php 

    $config->debug = true;

     

  5. 8 minutes ago, Siddhi Jagtap said:

    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?

    If you open the .htaccess file, you can see a section like below 

    image.png.66201292a072e46b9596fae5c81f111c.png

    usually, the website should work straight away, but in you case, just try if you can add your subfolder name as rewrite base.

  6. 3 minutes ago, Siddhi Jagtap said:

    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?

    I dont usually do this, I am not expert in PW but usually, I just follow the normal installation and website works right away. There will be some mismatch with external links / images which can be solved easily. I usually get my navbar menu using page ID only. 

     

     

  7. 9 minutes ago, Siddhi Jagtap said:

    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.

    ok, then I guess we need to check the .htaccess file. Is there any .htaccess file in root folder ? trying to meddle with the URL and root folder ? 

    and I migrated  one of my old PW site backup   as a subfolder to my main website, my admin URL go like this 

    https://mymainwebsite.com/subfoldername/adminname/  

  8.  

    59 minutes ago, Siddhi Jagtap said:

    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.

    There is a quick dirty fix is to rename the exported folder name into ' site ', this will bypass the profile not found error. 

  9. 8 minutes ago, Siddhi Jagtap said:

    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.

    well, just for a testing, can you try to put a test  link using this 

     

    <?php echo $pages->get(1001)->url; ?> // where (1001) is the page ID, you can see this page ID from admin. 

    image.png.a6629d3782f71f9a1c2db5c6020205eb.png

  10. 12 minutes ago, Siddhi Jagtap said:

    It gives an error saying 'Trying to get property of non-object'.

    depends on the way you are getting the page URLs. If you are getting page links using page ID, please check the if the correct Page ID exists. You can check this in admin section. If the page IDs are not matching, it may throw error. Another possible situation for non object error is, when you try to output a string/url instead of an object. An explanation is here

  11. Quote

    But when I say add a link redirecting to ./about.php, the URL caught is www.mywebsite.com/about.php

    how are you linking to the about page ?  can you put this below code in your home page and try clicking the link working or not ? 


     

       <!-- top navigation -->
        <ul class='topnav' role='navigation'><?php
    
            // top navigation consists of homepage and its visible children
            $homepage = $pages->get('/'); 
            $children = $homepage->children();
    
            // make 'home' the first item in the navigation
            $children->prepend($homepage); 
    
            // render an <li> for each top navigation item
            foreach($children as $child) {
                if($child->id == $page->rootParent->id) {
                    // this $child page is currently being viewed (or one of it's children/descendents)
                    // so we highlight it as the current page in the navigation
                    echo "<li class='current' aria-current='true'><span class='visually-hidden'>Current page: </span><a href='$child->url'>$child->title</a></li>";
                } else {
                    echo "<li><a href='$child->url'>$child->title</a></li>";
                }
            }
    
            // output an "Edit" link if this page happens to be editable by the current user
            if($page->editable()) {
                echo "<li class='edit'><a href='$page->editUrl'>Edit</a></li>";
            }
    
        ?></ul>

     

     

    and please check the about page has templates set and published and no permission issue 

     

    image.png.9efb8060bae30b7a878f98246228778c.png

  12. 6 hours ago, Siddhi Jagtap said:

    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 400

    Warning: 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?

    this is surely related to the file/folder permission issue. Please try clearing cache as well. 

    But I would like to suggest another way of moving PW work from dev machine to Production Live.  Once you finished the development, you can follow as below steps

    • install this module Profile Exporter for ProcessWire 2.5+ (  Admin => Module => New , then use the Module Class Name method )
    • upon successful installation Admin => Export Site Profile 
    • This will give you a form to give a name, title and image for the profile and lets you export into zip format
    • Upload this file into Production/Live server root (wherever you like to install  PW)
    • Upload the PW  Master version and extract it
    • Copy/Move your site profile backup file and extract it 
    • Now, you will have site profiles folders like site-classic, site-blank, and site-the-name-you-have-given
    • go to the installation URL and you choose your site-the-name-you-have-given from the menu and install it
    • this will import the database, files, assets and everything. 

    I hope this works for you. 

    • Like 1
  13. On 10/2/2021 at 6:48 AM, Siddhi Jagtap said:

    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.

     

    surely, try to clean your cache

  14. Hi,

    I have installed 1 year old project backup into the new latest PW version. I used an earlier backup(taken in August 2020) and installed such as :

    • 1. I downloaded the latest (ProcessWire 3.0.185 dev © 2021) then extracted into htdocs
    • 2. copy pasted the site-profile from my backup. (this has the files/folders same as other site profiles, classic, beginner etc)
    • 3. I chose my backup site profile and installed
    • 4. I am able to login the admin panel 
    • 5. My fronted home page shows error as below 
    Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'page_path_history.language_id' in 'field list' (in wire/modules/PagePathHistory.module line 752)
    
    #0 wire/modules/PagePathHistory.module (752): PDOStatement->execute()
    #1 wire/core/PagesPathFinder.php (1014): PagePathHistory->getPathInfo('/', Array)
    #2 wire/core/PagesPathFinder.php (222): PagesPathFinder->getPathHistory('/')
    #3 wire/core/PagesRequest.php (255): PagesPathFinder->get('/', Array)
    #4 wire/core/Wire.php (414): PagesRequest->___getPage()
    #5 wire/core/WireHooks.php (951): Wire->_callMethod('___getPage', Array)
    #6 wire/core/Wire.php (485): WireHooks->runHooks(Object(PagesRequest), 'getPage', Array)
    #7 wire/modules/Process/ProcessPageView.module (10
    
    This error message was shown because: you are logged in as a Superuser. Error has been logged.


     
    so I removed the line where its selecting language_id from the file wire/modules/PagePathHistory.module line 752

    But this is an ugly fix, so is there any other proper fix for this issue ? Does any one experience same issue when trying to install from a backup site profile ? 

    image.png.55c52f857099ad93f4c4f4e1a7a421d5.png

     


     
     thanks

     

  15. On 3/19/2021 at 8:28 AM, benbyf said:

    Hi @JeevanisM Thank you so much for your kind words! The art for Grace has been done but the amazing Joe https://www.tandc.games/news/team-spotlight-joe-blakeston/.

    Let me know if you have any other ideas for important people from CS history who should be included! And sign up to the news letter or socials if you wanna hear its progress etc.

    Cheers,

    Ben.thumb.jpg.579cade2f41bbc4a5ce22cdcb8190c62.jpg

    Quote

    //Let me know if you have any other ideas for important people from CS history who should be included! And sign up to the news letter or socials if you wanna hear its progress etc.// 

    There is one computer pioneer often get backseat in foray, none other than Mr. Konrad Zuse . I dont think he gets the wider audience as he deserves. 

  16. On 1/13/2021 at 12:20 PM, nbcommunication said:

    Shetland.org is a website run by Promote Shetland which inspires people to visit Shetland, encourages people to move to Shetland to live, work and study, and attracts people to invest in commercial activities in the isles.

     
    shetland-org.thumb.png.8421cdfbf435a4d34bdadc09ae7e180a.png
     
    We (NB Communication) have run the Promote Shetland service on behalf of the Shetland Islands Council since 2017, and as part of the contract undertook a project to redevelop the existing Shetland.org website.
     
    In this showcase we’ll highlight a selection of modules we used and what they helped us achieve.
     
    Visit the site: www.shetland.org

    Pro Modules

    ProCache
    We use this on almost every site we build. Indispensable. The cache settings used are pretty simple – most templates are set to 1 week, with the entire cache being cleared on save.
     
    We use ProCache’s CDN functionality to serve assets from CloudFront via c.shetland.org.
     
    We also use the API provided by ProCache to compile (SCSS), minify and collate our styles and scripts via $procache->css() and $procache->js(). We then use the URLs returned to preload the assets, making the site even faster!
     
    ProFields: Repeater Matrix 
    Again, we use this on almost every site we build. Another must have Pro module.
     
    This module allows us to create a really powerful page builder field (we call it ‘blocks’) that handles the majority of the content on the site. 
     
    On a simple development, we just use two block types - Content and Images - the latter displaying as a gallery or a slideshow. On this site we have 13 different types, including ‘Quotes’, ‘Video’, ‘Accordion’, and ‘Links’. Additionally many of these are configurable in different ways, and some render in different ways depending on the template and context.
     
    Have a look at the links below for some examples:

    NB Modules

    We also used a number of modules we've authored:
     
    Used to retrieve the 6 latest images from instagram.com/promoteshetland.
     
    shetland-org_instagram.thumb.png.1c24cb0f12a000555fe8ad5a7b3c4296.png
     
    Used to implement a CSP for the site. Currently scoring a C on observatory.mozilla.org – not the best score possible but significantly better than all the other destination marketing websites I tested (all got an F but one which was a D-).
     
    Used throughout to generate and serve images of different sizes via the srcset and sizes attributes. This module is really useful if you are looking to optimise the serving of images to improve page speed times/scores.
     
    shetland-org_srcset.thumb.png.81389f6b0f84f668e4eb885480d0ba5a.png
     
    This module was developed specifically for use on this website, as we wanted more control over the rendering of the oEmbed data. In the example below, the video thumbnail is displayed with a text overlay – when clicked the video (YouTube embed) opens in a lightbox.
     
    shetland-org_video.thumb.png.890b1c080033ecd5b70d477186661c17.png

    And a big shout out to…

    Page Path History
    The previous site was also built by us in ProcessWire, but a number of years ago now. The new site has significant changes to the sitemap, but 1000+ blog posts were also migrated. Instead of an .htaccess file with thousands of 301 redirects, we were able to use the functionality provided by this module to implement redirects where required, and in the case of the blog posts which were migrated via an import script, implement the redirects via the API  - $page->addUrl().

    ...

    The above is just a fragment of the features present on this site, and the development just a part of a much larger project itself. 

    We're really proud of what we've achieved, and we couldn't have done it without ProcessWire.

    Cheers,

    Chris (NB Communication)

     

     

    Such an amazing website, makes me find a job there and move into Shetland !  :)  Please let me know if any openings for a PHP/Processwire Dev in Shetland  :) 

    • Like 1
  17. On 2/25/2021 at 9:00 AM, psy said:

    Excited to be learning REACT/NextJS. It's so 'on-trend'. 

    I can double my hourly rate, take 3x as long to deliver a website with 2/3 of the Google Lighthouse results and who doesn't love the spinner while the component content loads? 

    Doing a well optimised PW site with minimal JS, fast page loads, accessibility, SEO and more built in is so old hat.

    And even better, with JS frontends, the code maintenance goes on and on. No end to revenue possibilities.

    FML

    just out of curiosity, what do you think about JavaScript FullStack Dev ( the Node/Express) hype.. As a PHP developer, I am a bit confused as ' Should I jump into the Node camp or not ' :) 

  18. @benbyf

    love this : https://www.tandc.games/projects/grace-hopper-bug-rescue/

    That cartoon image of Ms Grace Hopper, I could remember her photo from my Computer Science Text Book  :) An awesome artistic work there.  I love the concept of game, rescue friend from the large 1950, resonating with what Ms Grace did, the first BugFix :) 

    The website looks awesome and best wishes.

×
×
  • Create New...