Ngrok functionality & Wordpress


  • | 1110 points

    Hello, I am new to Laragon, more or less just testing it due to its promise of high speed which it delivers, I must admit. However, program does not go on my easy with other things which I will describe below. I have migrated my projects from Local by FWhl that works exactly as intended to me and apart from its loading speed I had no problems with it at all. Now to my problems:

    1. NGROK. Both Local and Laragon are using NGROK which is an invaluable tool for me and one of the most important features for my development habits. However, where Local's Ngrok link work without any problems for all devices correctly displaying my Wordpress layouts, NGROK via Laragon only shows content correctly on desktop device. Every time I push the link to a mobile phone to show up my responsive layout, I am receiving a broken list of posts that is free of any layouts and with non working links. I have not noticed any mention about this problem anywhere and it leaves me confused. Decided to directly here hoping the get this problem resolved so I can stay with you. IF not, I ll be going back to Local.

    2. I am running several WP projects as well. Today, I tried carry on working and to my surprise, one of the projects when pushed via Laragon's -www- will only open as site without WP admin bar, whilst other opens with admin bar without any problem. Again, no idea why or how to fix this.

    I will be grateful for any useful advice of how to fix both issues effectively and once for all, so I can carry on using this program.

    Cheers

    Mars


  • administrators
    | 89600 points

    @Mars-Vertigo :

    1. Did you try this?
      https://forum.laragon.org/topic/167/tutorial-how-to-force-wordpress-to-use-relative-urls-ngrok

    2. If you don't experience the same issue with Local, you can add the same PHP version to use with Laragon:
      https://forum.laragon.org/topic/166/tutorial-how-to-add-another-php-version


  • | 1110 points

    @leokhoa

    1. Thank you this solved the problem! I was just astounded that in Local this works out of the box not realizing what is the underlining problem.

    2. Well, I have been using Laragon since yesterday and I normally worked on that project - www - would always push the site inclusive of the WP admin bar. Besides my other project is using the same php version and works normally. Neverthless I upgraded php from 7.1.12. to 1.14, but to no avail. Both were migrated from Local under php 7.1 so that shouldn't be the problem anyway. Any other ideas?


  • administrators
    | 89600 points

    @Mars-Vertigo :

    1. Nice! I'm glad it solved your issue. However, I will check how Local solves the issue.
    2. For issue like that, the problem is related to version (PHP, Apache) or configurations. You may need to check the logs to figure out.

  • | 1110 points

    Funnily enough, I have just copied some updated plugins from my Local WP-Content into the Laragon WP-Content of another site I am working on and - voilaaa this one stopped showing WP-Admin bar also. But when I migrated them from Local two days ago both worked without problem.

    On Local I was using nginx which I enabled also on Laragon and as I said they both worked after migration. That is the only think that does not make sense now.


  • | 1110 points

    Ok, so here is what I did: I migrated the both projects again from backups and installed them over brand new Wordpress installation. I spent rest of the day designing one of the sites without problem. Then I made some saves clicked on visit site from WP dashboard and closed the dashboard after me. When I tried to switch back to my WP admin via Laragon's -www- menu I landed again just on the side without WP admin dashboard :( Please help.

    PS: Local by FlWheel has an elegant solution for this - it gives you a choice to directly access the admin dashboard or visit the site. It is really shame Laragon does not have it.


  • administrators
    | 89600 points

    @Mars-Vertigo : In that case, you can use Laragon's Procfile to create a quick access to your project. Here's how:

    1. Open Procfile (Menu > Laragon > Procfile)
    2. Add this line:
    My Admin: http://www.google.com
    

    Replace http://www.google.com with your prefer link for WP Admin such as http://mywordpress.oo/wp-admin

    That's all. Now, you have a new Menu Item (Menu > Laragon > My Admin), click on it will let you go to your WP Admin page.

    Ref: Laragon feature: Procfile - What is it?
    https://forum.laragon.org/topic/476/laragon-feature-procfile-what-is-it/2


  • | 1110 points

    @leokhoa said in Ngrok functionality & Wordpress:

    My Admin:
    nice, but can I add this line for each WP project or just one?


  • administrators
    | 89600 points

    @Mars-Vertigo : You can add another lines. My Admin is just a sample.


  • | 1110 points

    @leokhoa got it perfect, thank you!


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.