I have a strange situation on Netbeans for PHP on Ubuntu. I have enabled code completion and It only happens for me once.
meaning, Ex: if I type in_array (php base function) for the very first time it gives me suggestion. Then in the next code line if I type in_array, Now I don't see suggestions.
I googled and what I found was to enable code completion.
Does anybody had experience on this strange situation? Any one knows how to make it work?
I dont know what causes this. But I could fix it. Simply uninstall netbeans and re-install it. (re installation done with a fresh download from the site)
Thats it.
Related
I am plannig to start a simple php application to do that I instaled Mamp because I worked with it before, it is good, but now I am facing a problem, as the title says, my Apache Server is not starting, it starts and then when MySql starts it stops, I did not understand what was happening so I tried some solutions I found here in stackoverflow.
One of the solutions suggested that this is a problem in the latest version 4.1.1, so he provided a link to the previous version 4.1 and it is true because this problem was not there before, I took the exe file and installed it but I had the same problem, maybe Mamp version changing has helped him but did not worked for me.
The second solution is a solution that has been suggested by many people, and I think it is a solution, but I could not implement it and that's why I am here.
The solution says that changing the php version in the Mamp - Preferences - php to 7.2.14 instead of 7.3 solves the problem, I tried it but I get an error, Windows interface pops up and saying that something in not found, I did not get what was that, and googled it but I am still unable to understand what is missing and I feel like that nobody before me faced the problem x).
The message in french but here is what is saying :
The processus starting point zend_wrong_parameter_count_error##16 is
not found in the library of dynamic links.
C:/MAMP/bin/php/php.7.2.14/ext/php_gd2.dll
I think the message is clear, something is missing, and it is this file php_gd2.dll, I checked and it is true, but how am I going to add it correctly ?
I downloaded the file from a website and added it to my php7.14.2 folder but I get the same error.
Any help would be much appreciated, I wanted to start the app a month ago and faced this problem and then changed my plans just because of it and now I need to fix it to move on.
That's the alert it's showing.
As you can see, I already set the path (I also tried another .exe, from WAMP), but it is still alerting that PHP executable wasn't found.
I have no idea why, but it started to happen after I installed this extension:
Before that it was set the same way as now (executablePath: php.exe) and it was all right. After I installed the PHP IntelliSense, I've found no way to fix that.
Hope some of you already faced this, and can help me.
Thanks!
I downloaded Drupal 8 connecting to IIS, and mysql (mssql as well). When I proceed to install Drupal 8, it tells me that it is already installed. When I delete settings.php, it sometimes would actually install all the way. Sometimes it just says batch error. Other times Drupal says "already installed".
I notice when the site loads, it takes a long time saying "waiting for localhost".
I have php storm running proficiently but it did not find the errors. So maybe it wasn't the file itself.Is there a specific way php storm can fix this?
If anyone can please help me, feel free, I really need guidance for this.
Below are images to what is on my screen.
Link to how I set up the entire file/process. I am aware its mssql. I used both
Other times, it displays a no active batch error.
This only occurs with Drupal 8. WordPress, Joomla, and Drupal 7 works perfectly.
You can fix this issue by copying code of default.settings.php into your settings.php and install it into empty database.
It's normally occurs when you really have the Drupal installed on your database.
Try to delete the database that is configured on your settings.php and run the /install.php again.
It will solve your problem.
I'm using Eclipse to work with my php site. It originally worked very well under Linux, but then I re-installed it to a Windows based server. Now I get the error above. The original line causing the error was:
php?>
but I changed it to:
?>
My problem is, I'm still getting the same error across the board on every site I go to (it's in my header.php file), no matter how many times I refresh or reboot. Not sure why it's not evaluating it fresh, but I know that it's not, because there is no more 'php' in the offending line.
I'm thinking I need to have my php server reset the error log or something, but not sure how to do that. Any suggestions are welcome.
-Tano
Ok, so I figured out what the problem was, and it still makes no sense, but at least I know where to look.
I'm using eclipse to edit my PHP files. In eclipse, the changes are taking effect. Even if I exit, reboot, and restart eclipse, that darn 'php' is gone.
But, when i actually load the "C:\xampp\www\MyLibraryAnywhere\scripts\header.php" file in Notepad++ I can see the stinkin' "php" is still there!
So, the issue is that edits made in eclipse are not being saved to the actual files in question. I made the repair in Notepad++ and the error is gone now. I'll post to the eclipse board to see why this is happening.
Thanks to all that took the time to help me.
I'm having trouble with debugging a PHP project through NetBeans using XDebug, and was hoping someone out there might have had this problem before.
Debugging works fine for the requested php file - so if I go to index.php on the remote server, I can put a breakpoint anywhere in index.php in NetBeans and the code stops there and I can step through.
The trouble is, all the other files appear on the call stack like this: "file:///home/user/site_html/library/class.requestprocessor.php" and because that's a path to a file on the remote server, NetBeans is unable to resolve the name, and so I can't step through the code for it. It makes debugging practically useless! The php file that was requested, for example index.php, appears just as "index.php", it's just all the other ones which are included that NetBeans can't resolve properly.
Is there some setting in NetBeans or XDebug that I can use to solve this problem? I have tried my best looking through all the project settings and options in NetBeans, and also looked through all the configuration options of the XDebug extention, but to no avail. Surely someone out there must have had this problem before? How did you solve it? I'll be very grateful if you could let me know.
If there's no other way, do users of Eclipse PDT and XDebug have this problem when debugging on a remote server? If not I'll make the switch.
This issue appears to be fixed in NetBeans 6.7.
Okay it seems no one is going to answer the question, so I'll post the results of my research.
As I was unable to find a way to make NetBeans successfully debug as I wanted, I tried using Eclipse PDT and Visual Studio 2008 with the VS.php extension in order to solve my problem. Eclipse PDT was hell to setup, and I wasn't happy with the way you couldn't specify a port to use for your FTP server in its Remote Server Explorer. I found VS.php did everything I wanted, it automatically uploads the code, as well as having perfect debugging, and it was EASY to setup. The only thing is, it looks ugly and I can't find a way to customise its colours. However, I'm going to choose function over fashion, and so I've settled on using VS.php as my final solution. Which to be honest is a shame, NetBeans was really great, I just can't live without a working debugger.
I had this same issue. I'm running Netbeans 6.8. You have to right click on your project, go to project properties/run configuration/advanced and set up path mapping. Map the folder on the server to a folder locally so that Netbeans knows which files to open locally when it hits these methods.