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

Unable to show source file #5

Closed
ogmueller opened this issue Feb 4, 2023 · 1 comment
Closed

Unable to show source file #5

ogmueller opened this issue Feb 4, 2023 · 1 comment

Comments

@ogmueller
Copy link

When clicking on the "show file icon" after each entry, it throws a fatal error:

dds-webgrind-1  | [04-Feb-2023 11:37:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Webgrind_Config::exposeServerFile() in /var/www/html/vendor/jokkedk/webgrind/index.php:136
dds-webgrind-1  | Stack trace:
dds-webgrind-1  | #0 {main}
dds-webgrind-1  |   thrown in /var/www/html/vendor/jokkedk/webgrind/index.php on line 136
csandanov added a commit that referenced this issue Feb 7, 2023
@csandanov
Copy link
Member

Hi, thank you for reporting this.

A new tag 1.30.0 was released, now file browsing should work but for that you have to mount your codebase to webgrind, by default we consider that your original codebase is under /var/www/html and will be mounted to /mnt/files but this can be changed via env vars WEBGRIND_ORIG_CODEBASE_PATH and WEBGRIND_MOUNTED_CODEBASE_PATH.

For example this is how we add bind mounts in docker4drupal when you're using your own codebase:

    volumes:
    - files:/mnt/files
    - ./:/mnt/codebase:cached

In case of vanilla drupal:

  webgrind:
    volumes:
    - codebase:/mnt/codebase

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

No branches or pull requests

2 participants