Helo,
my Netbeans does not show error messages when some error occurred in code. It used to show red icon on the line where error (eg. syntax error) occurred. Now it shows icon only next to filename in file tab. I do not remember if I changed some IDE settings - there was no reason to disable error messages.
I expect red icon on the line number 85, like it is here
Maybe I am missing some option in netbeans preferences. I have tried to find it but with no result.
This doesn't apply to OP because they are using .php extensions, but it might help someone else...
For me the issue was because I'm developing with drupal and so most files don't end with php. To fix my issue:
Tools | Options | Miscellaneous | Files
Click New next to File Extension and choose 'text/x-php5' as the associated file type.
Restart IDE
I do not know if you have fixed the problem, but I had the same issue here.
I finally successed in fixing it.
In "Tools" > "Options" > "Editor tab", then in "Hints" tab, I disabled the "Braces" section for PHP language.
I don't know why, but now syntax errors are shown in the left side bar as your screenshot shows.
I hope this can help you!
EDIT: I'm using Netbeans v8.1 for Linux.
Related
This issue seems to appear after I have updated to the latest version 2021.2 but I am not sure if this is the cause of my problem.
The problem is that, when I am editing the PHP file, the syntax error doesn't go away even I am very certain that I have fixed the highlighted error.
Here are a few examples:
When I write something like $x = 1;, the editor prompts me that the local variable $x is unused. Fine. But this won't go away even I use $x later on.
I use the autocomplete feature a lot. So for example when I want to type $this->getSomeObject($id), I can only just type $this->getS and press Enter to let PhpStorm outputs something like "$this->getSomeObject()".
Now, as getSomeObject() expects a parameter, PhpStorm would underline this line with red, saying that "Required parameter $id is missing". Fine. However, this error won't go away even I fill in the missing piece.
Which means that the IDE will still underline the line $this->getSomeObject($id) and complain that I "Required parameter $id is missing".
I see similar problems everywhere in my code, where PhpStorm reports of "unused local variable", "required parameter missing", "undefined variable" etc. never go away. Not even after I reopen the offending file.
Reopening the project can eliminate the outdated error highlights, but similar errors will occur again.
I even try invalidating caches (File/invalidate caches, restart).
An Example :
Version :
PhpStorm 2021.2
Build #PS-212.4746.100, built on July 28, 2021
Licensed to orhan erday
Subscription is active until December 21, 2021.
For educational use only.
Runtime version: 11.0.11+9-b1504.13 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 2996M
Cores: 12
Registry: run.processes.with.pty=TRUE, ide.balloon.shadow.size=0
Non-Bundled Plugins: String Manipulation (8.15.203.000.3), intellij.prettierJS (212.4746.57), de.espend.idea.laravel (0.15.4), de.espend.idea.php.annotation (8.0.0), fr.adrienbrault.idea.symfony2plugin (0.23.210), ru.adelf.idea.dotenv (2021.3.0.212), com.laravel_idea.plugin (4.3.4.212)
You would need to check the idea.log file (Help | Show log in XXX) for possible exceptions etc.
But right now for me it looks like it could be https://youtrack.jetbrains.com/issue/IDEA-275168.
If the above is your case then please disable bundled Grazie plug, restart PhpStorm and check again -- any better?
This is a bug that somehow only affects Turkish users.
https://youtrack.jetbrains.com/issue/IDEA-275168
To work the issue around, you can disable the Grazie plugin at Settings | Plugins.
I hope the Grazie devs to fix that soon.
I recently started experiencing a strange error every single time I try to visit the transplant a module page. From the design > positions page3 I click on the "transplant a module" button on the top right and it takes a really long time to load, but then it does not load at all. I get a blank page with the following error:
The page you are looking for is temporarily unavailable.
Please try again later.
5cb0af3eb5bd6096ecb4dce014d6635a 3a1c22abc23c754c0fb7be3b7c58431e 159cf03490b9d26b556696ed897a7daa
I contacted my server provider and they explained to me that the server I was using was reaching the max amount of files allocated, and that I needed to get a new server just for this particular site. So I did. I then cloned the site and database and brought it over to the new server....but I'm still getting this error everytime I try to transplant a module.
Any one ever encountered this issue? Any one have any ideas as to what could be causing this? Any suggestions on what I can do to troubleshoot this error further?
I have turned on debug mode, and it does not give any more information than what's above.
Thank you all,
Maybe you are facing the following known bug. It will be fixed in 1.7.5 (coming soon)
https://github.com/PrestaShop/PrestaShop/issues/10811
Sometimes module have some issues, I've a problem one day and this help me :
In config/xml copy the 2 files "must_have_modules_list.xml" and "default_country_modules_list.xml" on your PC in case,
And then delete the two files from your site,
This "refresh" the cache of your module config
Hope will help you
The "Transplant a module" page is now working after I changed the file AdminModulesPositionsController.php in /root/controllers/admin folder.
In line 449 changed:
$all_modules_controllers = Dispatcher::getModuleControllers($type);
to
$all_modules_controllers = Dispatcher::getControllers($type);
Try this, it's working for me.
I have xdebug stop in one breakpoint and I want to test some code in console but I have a problem.
I can't write in console and when I tried to paste it says "this view is read only"
I had the same issue with log files. Disabling all log highlight plugins (i.e. Ideolog) fixed it. They weren't highlighting anything anyway except scrollbar in green color.
Hope this helps somebody.
Sometimes this can happen for the log file that is too large. PhpStorm disables the possibility of editing it and adds “this view is read only” message.
If I'm reading your screenshot and what you wish to do correctly ... then PhpStorm version you are using is too old.
The Interactive Debug Console was added in v10 while you are using v9.0.2.
https://blog.jetbrains.com/phpstorm/2015/09/get-an-advantages-of-interactive-console-during-debugging-in-phpstorm-9-5-eap/
Upgrade your PhpStorm to the latest version -- which is 2017.1.2 right now.
So I am new in ubuntu and I installed LAMP and get it to work with phpsotrm properly. The only problem i have is that when i have errors in my code it doesn't show me any errors, just a blank page.
Now with phpstorm I manged to connect with xDebug and when I checked phpinfo() I found:
http://imgur.com/zZnAi7d
Here is the phpstorm connection:
http://imgur.com/ckrkeHp
I changed proper php.ini file and I added following line at the end of the file:
[XDebug]
;zend_extension="/usr/lib/php5/20121212/xdebug.so"
;xdebug.remote_enable=1
;xdebug.remote_port="9000"
;xdebug.profiler_enable=1
;xdebug.profiler_output_dir="<AMP home\tmp>"
Still noting is shown, not even in the console or in the page source. Is there any fix for this issue? I tried to search the internet but couldn't find anything.
Just follow those intructions:
Let PHP show all errors
It seems that you've got disabled showing any errors.
I am such a dummy it actually works just the certain errors that i was trying to simulated didn't really effect xDebug.
I am so sorry for wasting your time.
I've copied a drupal6 site from a production server onto a dev server and have started trying to get it up and running and most of it runs ok except page variant.
On the live site the page variant shows on, on the dev site I can select the "Content" menu item and see all content that is supposed to be showing in the appropriate area however when It try to view on the front end on dev it shows the page wrapper but the main content area is blank.
When I click on the "Preview" menu item in the page variant admin the page doesn't display, however selecting this on the live server shows it fine.
It feels like a permissions / setting issue to me but so far I've not been able to figure it out. Any ideas?
This was a "Call-time pass-by-reference" issue and was caused by different PHP versions on live & dev. PHP 5.3 seems to allow the call allowed this call but gave a deprecation warning but the new dev server is on an updated version of PHP which doesn't allow this anymore (although it wasn't giving any errors either) so I had to make the following change (and will likely have several similar ones to do before I'm finished)
Had to update a function template_preprocess_panels_pane in in panels.module from
function template_preprocess_panels_pane($vars)
to
function template_preprocess_panels_pane(&$vars) {
as described in comment 21 on https://drupal.org/comment/6820396#comment-6820396
These was also a suggestion that you could update a php.ini value to allow call-time pass by reference (change allow_call_time_pass_reference = Off to allow_call_time_pass_reference = On in php.ini) but updating the code where necessary feels a better way to go.