php version - 7.3.27
Komodo ver 12.0.1
OS: Windows 10
I have a php script which has herf tag to call another script in same path which is throwing error as it trying to locate file from %temp% location. can someone help me to fix this issue as i suspect default path set somewhere in komodo taking preference ?
copy of log file pystderr.log after reproducing issue:
[2021-03-17 19:01:09,661] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2021-03-17 19:01:28,272] [WARNING] console-logger: Key event not available on GTK2: key=“u” modifiers=“control,shift” (1) in chrome://komodo/content/tail/tail.xul:0
[2021-03-17 19:12:20,140] [WARNING] console-logger: Key event not available on GTK2: key=“u” modifiers=“control,shift” (1) in chrome://komodo/content/debugger/debuggerPanel.xul:0
[2021-03-17 19:14:41,026] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
What you expect to happen - I have all my php files in same directory( eg:c:\code) if I run this main php file , this should give me list of links which is working and clicking on link should redirect to next page (htmlcopy.php from above code) .
What is actually happening - clicking on link throws me error as its looking for file in TEMP path instead of launching file from same path where maim code resides.
Hope I have clarified requirement and error details here, appreciate your help and support.
How are you preview the webpage?
Can you share the HTML that is rendered by the PHP?
Please provide more details about your workflow. Something like:
I open file blah.php in Komodo
I start my PHP server
I open the page in a browsers and click the link
Something like the above. It’s not clear to me how you’re getting from your editor code to the error you’re reporting. A few things could be possible but I don’t want to guess.
So far my best guess is that your PHP server has your DocumentRoot configured to your system temp dir.
@sajitha_safrin thanks for clarifying. You need to test your code through MAMP, not Komodo. If you want to debug PHP server code that servers up a website you need to setup remote debugging:
@careyh thanks for your clarification. Apologies if your answered already, how do I setup my pc to debug and run php code without MAMP and using Komodo which should execute all features of php,? can you share any documentation to understand and guide this steps.
I shared the documentation in my last comment. It should have opened to the Remote Debugging docs for PHP. Did it not? That’s all the information you should need.