Skip to content
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

Illegal String Offset error in logs #11

Open
marrek-az opened this issue Jan 8, 2019 · 6 comments
Open

Illegal String Offset error in logs #11

marrek-az opened this issue Jan 8, 2019 · 6 comments
Assignees
Labels

Comments

@marrek-az
Copy link

PHP message: PHP Warning: Illegal string offset 'username' in /usr/share/nginx/dokuwiki/lib/plugins/gitlabproject/syntax.php on line 141
PHP message: PHP Warning: Illegal string offset 'access_level' in /usr/share/nginx/dokuwiki/lib/plugins/gitlabproject/syntax.php on line 142" while reading upstream, client: X.X.X.X, server: wiki.example.com, request: "GET /playground:test HTTP/1.1", upstream: "fastcgi://unix:/tmp/wiki.sock:", host: "wiki.example.com"

@marrek-az
Copy link
Author

This is php-fpm 7.2

@algorys algorys added the bug label Jan 9, 2019
@algorys algorys self-assigned this Jan 9, 2019
@algorys
Copy link
Owner

algorys commented Jan 9, 2019

I've made a fresh install with following:

  • Release 2018-04-22b "Greebo"
  • Ubuntu Server 18.04 LTS
  • Php-FPM 7.2
  • Ngninx 1.14

The only warnings I had are the following:

PHP message: PHP Warning:  Use of undefined constant Reporter - assumed 'Reporter' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/gitlabproject/gitlab/gitlab.php on line 89
PHP message: PHP Warning:  Use of undefined constant Developer - assumed 'Developer' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/gitlabproject/gitlab/gitlab.php on line 90
PHP message: PHP Warning:  Use of undefined constant Master - assumed 'Master' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/gitlabproject/gitlab/gitlab.php on line 91
PHP message: PHP Warning:  Use of undefined constant Owner - assumed 'Owner' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/gitlabproject/gitlab/gitlab.php on line 92
PHP message: PHP Warning:  Use of undefined constant Guest - assumed 'Guest' (this will throw an Error in a future version of PHP) in /var/www/dokuwiki/lib/plugins/gitlabproject/gitlab/gitlab.php on line 88

I will make a release to make corrections for that.

But I do not have the warnings that you have... @shoshin71 please give me your install versions.

algorys added a commit that referenced this issue Jan 9, 2019
@marrek-az
Copy link
Author

I'm using:

  • Ubuntu Server 18.04 LTS
  • php-fpm 7.2
  • nginx 1.14
  • Release 2018-04-22b "Greebo"

The environment looks similar to your fresh install, at least from a version standpoint. There may be another plugin causing problems, which I will try to track down. I just pulled the latest copy from your repo, and the errors persist.

@algorys
Copy link
Owner

algorys commented Jan 14, 2019

It may be due to the version of Gitlab too.

Which version do you use? And the version of the Gitlab API (v3 or v4) ?

@marrek-az
Copy link
Author

Sorry for the delay. I'm running 11.6.3-ce.0, but it looks like it was still set at the v3 API.

@algorys
Copy link
Owner

algorys commented Feb 7, 2019

Hm ok, strange behavior... I'm currently working on two Gitlab server and I have no error:

GitLab 10.0.6
GitLab Shell 5.9.0
GitLab Workhorse v3.0.0
GitLab API v4
Git 2.20.1
Ruby 2.3.1p112
Rails 4.2.8
postgresql 9.5.14

and

GitLab 9.0.7
GitLab Shell 5.0.0
GitLab Workhorse v1.4.2
GitLab API v4
Git 2.7.4
Ruby 2.3.1p112
Rails 4.2.8
postgresql 9.5.14

But API version is v4... I'll try to update to v11.x and reproduce the error.

And I'll add possibility to choose Gitlab API version in settings (see #8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants