• Resolved thedesignerxd

    (@thedesignerxd)


    Currently running into an issue wherein I update your Visualizer plugin locally and it works just fine. Then I commit the change to a branch in our bitbucket repo, and build that change to our staging environment using Jenkins. Once the build runs and successfully completes, I try to navigate to our wordpress install and am greeted by a Critical Error page.

    In an attempt to test this I built our master branch back to staging and the site worked again, so then I logged in, and went to plugins/deactivated the Visualizer plugin. Then I built the update branch back to staging and the site works still. All good so far. I login to the site, navigate to plugins and attempt to activate the Visualizer plugin, but am greeted with the following error output.

    Warning: require(/var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/../markbaker/matrix/classes/src/Functions/adjoint.php): Failed to open stream: No such file or directory in /var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/autoload_real.php on line 41
    
    Fatal error: Uncaught Error: Failed opening required '/var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/../markbaker/matrix/classes/src/Functions/adjoint.php' (include_path='.:/usr/local/lib/php') in /var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/autoload_real.php:41
    Stack trace:
    #0 /var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/autoload_real.php(45): {closure}('3af723442581d6c...', '/var/www/html/h...')
    #1 /var/www/html/hub/wp-content/plugins/visualizer/vendor/autoload.php(25): ComposerAutoloaderInit0cfa41381204c801cf9e0304c5326c72::getLoader()
    #2 /var/www/html/hub/wp-content/plugins/visualizer/index.php(136): include_once('/var/www/html/h...')
    #3 /var/www/html/hub/wp-content/plugins/visualizer/index.php(175): visualizer_launch()
    #4 /var/www/html/hub/wp-admin/includes/plugin.php(2314): include_once('/var/www/html/h...')
    #5 /var/www/html/hub/wp-admin/plugins.php(192): plugin_sandbox_scrape('visualizer/inde...')
    #6 {main}
      thrown in /var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/autoload_real.php on line 41

    And just to confirm this is strictly related to building an updated plugin, I re-deployed master to our staging environment and manually clicked the update button in the plugins page for Visualizer, and it updated just fine, without any errors. The main issue here, is that we use a bitbucket repo to make sure that our developers all have the same plugins available to them.

    Hoping you can help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @thedesignerxd,

    Thanks for choosing Visualizer!

    I forwarded this issue to our developers to see if anything could be done about it. We’ll come back with a message once we have an update about this.

    Thank you!

    Thread Starter thedesignerxd

    (@thedesignerxd)

    Ok, thank you @luciamarinescu I look forward to hearing from you.

    Cheers!
    Chris

    Thread Starter thedesignerxd

    (@thedesignerxd)

    Hey! So, it appears that case sensitivity is the issue. In your file at:

    visualizer/vendor/composer/autoload_static.php

    There are a number of lines that use capital letters on folder callouts that actually have lowercase letters. Those lines are: 52-67

    '3af723442581d6c310bf44543f9f5c60' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/adjoint.php',
    'd803221834c8b57fec95debb5406a797' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/antidiagonal.php',
    '4714cafbd3be4c72c274a25eae9396bb' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/cofactors.php',
    '89719dc7c77436609d1c1c31f0797b8f' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/determinant.php',
    'c28af79ec7730859d83f2d4310b8dd0b' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/diagonal.php',
    'c5d82bf1ac485e445f911e55789ab4e6' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/identity.php',
    '0d2d594de24a247f7a33499e933aa21e' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/inverse.php',
    'f37c25880804a014ef40c8bffbab1b10' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/minors.php',
    'd6e4e42171df0dbea253b3067fefda38' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/trace.php',
    '2c9b19fa954fd3e6fcc7e7a1383caddd' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/transpose.php',
    '0a538fc9b897450ec362480ebbebe94f' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/add.php',
    'f0843f7f4089ec2343c7445544356385' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/directsum.php',
    'ad3e8c29aa16d134661a414265677b61' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/subtract.php',
    '8d37dad4703fab45bfec9dd0bbf3278e' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/multiply.php',
    '4888a6f58c08148ebe17682f9ce9b2a8' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/divideby.php',
    'eef6fa3879d3efa347cd24d5eb348f85' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/divideinto.php',

    Note the capital F on functions and O on operations

    Please re-open this ticket and make those changes so that your plugin works on environments that require case sensitivity. (You won’t find it to be an issue locally on a mac, or PC)

    AC

    (@purplecodes)

    Themeisle Support

    Hi @thedesignerxd,

    Thank you for providing more details.
    We have referenced this thread on the Github issue below:
    https://github.com/Codeinwp/visualizer/issues/1024

    I will mark this thread as closed.
    If you need to add more details, you can comment on Github issue link above.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error when updating Plugin using Bitbucket/Jenkins’ is closed to new replies.