Today I installed netbeans on my home computer to do some work at home. I installed the java 8 JDK (151) and installed netbeans with everything included (didn't do a custom install). I then pulled my project down from github.
My install folder for netbeans is on E:\netbeans
My project folder is the default on c:
I loaded the project, turned on XAMPP and ran it. Great, it works.
Then I made a change to the HTML (fixes a spelling mistake I made). Ran it again. It didn't take the change.
I made sure I had saved - still borked
I made sure Firefox was not caching my page - still borked
I tried it in a different browser, one that had never opened the project before - borked
I rebooted netbeans - borked
I deleted the cache in netbeans -borked
I rebooted my computer - borked.
Google searches for "Netbeans not applying changes" or similar things are not returning me with anything useful (all of the same it is the browsers cache, I have caching turned off in Firefox using about:config and I turned of memory and cache)
Windows 10 system
Netbeans 8.2 up to date (there are no updates available)
Project is HTML,PHP to a XAMPP database.
Anyone have some advice on this?
Edit: as suggested I ran it in Admin mode. It still behaved the same.
I am running it through Netbeans but I then just navigated to the page without clicking run in netbeans and it is the same.
So I figured this out and will post it here in case anyone else looks into it.
I installed netbeans and xampp on my E drive. The project I was editing was on the C drive in xampp/htdocs. When I would save it would save there. I am unsure how this happened but on the E drive was another copy of the project. When I ran the project it would run from the folder E:\xampp\htdocs instead of where the project was in c:\xampp\htdocs. Keep in mind, when you install xampp is will make the C: folder regardless of where you say to install it.
Anyway, if you are having this problem and you have two hard drives look and make sure there is not a duplicate project in the two htdocs. If there is, you might be saving to one and running the other.
I was having this same problem. Try ignoring cached content when reloading the page. These commands should work on Chrome, Firefox, and Edge:
For PC:
Ctrl + Shift + R
For Mac:
Command + Shift + R
Source:
localhost Won't Immediately Update
Related
I seem to have an issue with the file preview in the documents which throws me a xyz and logs me out. See image here
It doesn't matter what I change including removing the / from the root and site address in config php file i just cant get it to work.
Ive followed its4you install instructions with the correct chown and owner permissions etc for the full install. I then decided to set a brand new instance up on a new server and it is the same. So i reconfigured a different server on amazon web services running ubuntu... exactly the same issue.
I have a similar issue when i installed pdfmaker and tried to browse server in the editor (fck possibly), it would show me blank thumb nails, if i click one then save it would close the session and log me out.
I have several versions of 7.1 running on the same servers without issue.
Any ideas?
Found the answer to this. Whilst browser through two comparative server setups I noticed "Varnish" was enabled on the new instance running VTiger 7.3. I turned this off and hey presto, issue resolved!
I have latest Ubuntu 18, also Apache2, php 7.2, mysql.
I have rather old simple php application, written on php4 (at least not older than php5).
I have a task to run this application in this environment, to install php4 is not a variant. Possibly there are some compability mode to run this application by php7.2 as php4?
I succeded to open index.php in FireFox, but also it seems, that it is not shown correctly. I run that application also on Windows\IIS and it works perfectly. But on Ubuntu Application has a menu and i see only part of it. Also any item in that menu is created through localization links, like:
application\en\sitemap
application\en\news
Physically i have folders sitemap, news and etc, just under application root folder. But FireFox is not able to open application\en\news, because it seems it is trying to reach folder EN, which is not exist, of course. So neither menu item could be opened. Though on Windows it works from the start!
Tell me, please, direction for futher search.
Is there a compability mode php7.2-php4?
How should this virtual links en-ru work - should i configure php or there should be some points in application config.php for this issue?
Thanks
After working fine, with no config changes for months xdebug/netbeans is now useless.
I can create breakpoints but whenever it has 'stepped in' to a further scope its impossible to step thru and simply jumps out of the inner scope to the caller.
There are no exceptions generated.
Using tail -f xdebug.log shows breakbpoints being correctly created / removed, Netbeans failed to remove from Ubuntu Software Centre, however I reinstalled over the top of existing. This does not seem clean as Netbeans remembered settings.
Latest steps:
Ran instructions at https://xdebug.org/wizard.php and rebooted webserver
Of note here it recommended install of xdebug-2.4.1 instead of previously 2.4.0 however this made no difference to current state of NetB / Xdebug combo. I checked php-fpm ini and this correct phpized version still ?
Ran uninstall.sh at /usr/local/netbeans8.*
Downloaded re-install at http://www.oracle.com/technetwork/articles/javase/jdk-netbeans-jsp-142931.html (I also need Java JDK so this is ideal)
Made it executable and ran installer (as sudo)
chmod +x jdk-8u101-nb-8_1-linux-x64.sh;
./jdk-8u101-nb-8_1-linux-x64.sh;
And nothing changes - this is very frustrating that software designers still cannot be a***d to create proper uninstallers. Still same settings prior to re-install.
Further
Closed NetBeans again
cdl /home
then check in each user dir
rm -r .netbeans
rm -r NetBeansProjects
There was also a directory called nbproject near the site root directory and in the sitefiles repo which is gitted - these was removed.
Update
Now set up the project including the crap Netbeans debug 'stop at first line' and allowing watches (whats the point of these defaults in a generally used framework norm such as laravel and what is debugging without being able to look at variable values).
Its now begun allowing stepping thru code but after closing debug session will now not allow access to run config. Had to close all projects and reopen.
This proves that its a Netbeans issue.
Seems the problem went - maybe on IDE update ?
Created (with a struggle as continually no drop down options) I managed to add a few more debug urls. Its still not possible to do this directly as before so presume Netbeans has done some sort of 'breakit update'.
Testing the URLs in debug mode shows them all to step thru PHP properly now.
To change the URL is now an un-intuitive chore of selecting the project first in the projects tab and hoping to catch it in the drop down.
Therefore since re-install of xdebug showed it the project still broken, then complete manual re-install of the botched uninstall by the actual Netbeans app now shows it working it can only be confirmed that Netbeans is at fault. Shame - I have used Netbeans for years, but for it to cost me 2 days is a liability. Anyone know if Eclipse has improved speed wise ?
Before everything happened, I was running this wordpress install for developing themes using xampp. But I decided to upgrade the memory of this machine from 2GB to 6GB since I need extra room for applications. I back-up my code in a separate partition by copying them. Since I have a 32bit OS at the time, I format the computer and installed a 64bit version. All is well and fine the OS side.
When I setup my web dev environment something goes wrong.
When I imported my htdocs back, first by just fully copying them to a new fresh install of xampp and notice that all of the codes that put are not working. My CI code is displaying my PHP code in the browser. My theme in wordpress is also commenting out my PHP code when I view the source. The themes included in my fresh wordpress install works so there's something I am missing here.
From the looks of it, the php is being executed properly since anything that I install works. Just that the ones that came from a previous xampp is not.
Open up the php.ini file and set short_open_tag = On. Then restart apache.
If you are opening a local script directly in the web browser, maybe through your editor, double-clicking on the file or dragging and dropping the file ito the browser - it will be treated as HTML only.
Instead, open the file by typing... http://localhost/your-file.php into the address bar. I personally create a projects folder in the htdocs folder and then create a bookmark for... http://localhost/projects/ and this will display all my projects that are saved into my projects folder.
Note: if you changed the mail port for the Apache server, you will need to add that to the path as well. eg. If your main port is 8888, your would do this... http://localhost:8080/your-file.php
I had the same problem and this worked for me. Good Luck
For me, it was because the file was named as ".html". You must have an extension ".php"
I was using Magento 1.4.1 and upgrade gracefully to 1.4.2. After testing if the upgrade was Ok, I made some modification in order to have a new home page layout for a store using these instruction. The modifications have been tested on a local version (Ubuntu 10.04, php 5.3.2), and worked great.
When I upload the files to the pre-prod server (Centos 5.5, php 5.2.14), and access the System->Configuration->design tab in the admin backend, my browser seems to keep loading indefinitly.
What I have done:
I copied the app/code/core/Mage/Page/* directory to the app/code/local/Mage/Page/;
I created the app/etc/modules/Mage_Page.xml, and defined the codePool to local;
What I have already checked:
I got no errors in /var/log/httpd/*.log;
I got no errors in magento's var/log/system.log;
The frontend works fine;
The backend can be accessed, except the System->Configuration->design tab;
I tried to revert my modifications to a revision before the modification were made (using svn);
I cleaned up the cache using rm -fr var/cache/mage* var/session/* directly on the server;
I restarted the server multiple time;
I even tried to get a dump of the db in production on the preprod server, with no effect. I still got the same issue.
If someone could point out anything I could have forgot.
I am ready to try anything to make it work, since it would not affect the production server for now.
After a lot of searching, we finally tried to reboot the apache server (we had to force it to reboot, I don't know why?). When we retried, everything was working as expected.
There probably was a corruption on the server that made crash only this tag.
Hope this could help someone.