-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal Error: Invalid identifier: TYPE #24
Comments
Hi what version php? |
This could be related to #21 Possible FixChange
|
Thanks. Renaming “TYPE” to “type” helps.
However the next issue is:
```
“PHP Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in C:\inetpub\wwwroot\WWWKanbanBoard\kanboard\plugins\ContentCleaner\Model\ApplicationCleaningModel.php on line 3
”
```
I’m really confused about the “plugin” / “plugins” folder mix-up.
The config says:
// Plugins directory
define('PLUGINS_DIR', __DIR__.DIRECTORY_SEPARATOR.'plugins'); <= PLURAL “s”
But all plugins have this in their PHP files: “plugin” SINGULAR
Like: “namespace Kanboard\Plugin\ContentCleaner\Model;”
What’s correct?
Thanks
|
@DevPM99 Which version PHP are you using? |
@DevPM99 In the directory, the folder is named as In every file associated with a plugin, the text is written as |
it is runnin on: |
Try KanboardSupport (latest release v4.5, not master) to see if any php issues flag up |
Call to undefined function Kanboard\Plugin\KanboardSupport\Helper\posix_getpwuid() in ...WWWKanbanBoard\kanboard\plugins\KanboardSupport\Helper\SupportHelper.php:267 |
after skipping the not available posix function I get: |
hmmm... I will look into these issues but it will take time. I'm thinking its because of Windows Server or php8.2... as all my plugins are only tested on linux ubuntu and php 7.4/8.1 |
Before I switch to php 7.4 I suggest you look over your code for all posix and other linux functions and make them Windows compatible: https://stackoverflow.com/questions/2197366/how-to-install-posix-in-php Your pluginmanager works, so I think it is not php but posix functions and upper/lower case issues in the database |
After solving the „TYPE“ issue I get However, the path seems to be identical to other plugins... No idea what's going wrong! |
I think it's still the Windows / POSIX commands issue. |
Btw. my instance is/was running on Debian 11, so not sure about Windows/POSIX command issue. |
I have the same error TYPE on docker with sqlite db |
This occurs even in Docker with a brand new setup and nothing besides those three plugins installed. Replicate easily by running latest docker image for kanboard, install Plugin Manager, ContentCleaner, and KanboardSupport. KanboardSupport throws an error ContentCleaner throws I don't think this is related to Windows, given that the issue occurs even within Docker. I also tried running the image without named volumes for the data/plugins directories just to rule that out and it still has the same issues. That said, I am using a Windows host machine for Docker (WSL2 backend) so I guess it's possible, I'm not horribly familiar with the intricacies of Docker. |
Brand new docker install here as well and I also get the TYPE error. |
After installation with the latest KB and PHP on a clean Windows Server IIS, I get this error when calling the plugin:
"Internal Error: Invalid identifier: TYPE" on a blank web page. Nothing else.
What am I missing/doing wrong?
The text was updated successfully, but these errors were encountered: