jorgeuos / DataExport

Export database or connect to your BI tools.
GNU General Public License v3.0
1 stars 0 forks source link

Plugin fails immediately with critical error #4

Open MxFxM opened 1 month ago

MxFxM commented 1 month ago

DataExport 1.1.5 Matomo 5.1.0 Wordpress 6.5.5

I install the Matomo Plugin via the Matomo Marketplace Plugin (not via downloaded zip, because I cannot upload that but that's a separate issue on my side). Then I activate the plugin. When I go to the Matomo site settings and then DataExport I get this:

Error message: Failed opening required '/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/plugins/DataExport/vendor/autoload.php' (include_path='/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/archive_tar:/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/console_getopt:/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/pear-core-minimal/src:/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/pear_exception:.:/opt/plesk/php/8.2/share/pear') in /var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/DataExport/Controller.php line 11

Complete Error site:

`

A fatal error occurred

    <div style="width: 640px">

                <p>
            The following error just broke Matomo (v5.1.0):
        </p>
        <pre>Failed opening required '/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/plugins/DataExport/vendor/autoload.php' (include_path='/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/archive_tar:/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/console_getopt:/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/pear-core-minimal/src:/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/pear_exception:.:/opt/plesk/php/8.2/share/pear')

in /var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/DataExport/Controller.php line 11

        <hr>
        <h3>Troubleshooting</h3>

        Follow these steps to solve the issue or report it to the team:
        <ul>
            <li>
                If you have just updated Matomo to the latest version, please try to restart your web server.
                This will clear the PHP opcache which may solve the problem.
            </li>
            <li>
                If this is the first time you see this error, please try refresh the page.
            </li>
            <li>
                <strong>If this error continues to happen</strong>, we appreciate if you send the
                <a href="mailto:hello@matomo.org?subject=Fatal error in Matomo 5.1.0&amp;body=Failed%20opening%20required%20%27%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fplugins%2FDataExport%2Fvendor%2Fautoload.php%27%20%28include_path%3D%27%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fvendor%2Fpear%2Farchive_tar%3A%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fvendor%2Fpear%2Fconsole_getopt%3A%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fvendor%2Fpear%2Fpear-core-minimal%2Fsrc%3A%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fvendor%2Fpear%2Fpear_exception%3A.%3A%2Fopt%2Fplesk%2Fphp%2F8.2%2Fshare%2Fpear%27%29%20in%20%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2FDataExport%2FController.php%2011%20using%20PHP%208.2.20">error report</a>
                to the Matomo team.
            </li>
        </ul>
        <hr>

        <h3>Further troubleshooting</h3>
        <p>
            If this error continues to happen, you may be able to 

fix this issue by disabling one or more of the Third-Party plugins. If you don't know which plugin is causing this error, we recommend to first disable any plugin not created by "Matomo" and not created by "InnoCraft". You can enable plugin again afterwards in the Plugins or Themes page under settings at any time.

                        </p>
DataExport 1.1.5 deactivate
WordPress 0.1.0 deactivate

A fatal error occurred

The following error just broke Matomo (v5.1.0):

Failed opening required '/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/plugins/DataExport/vendor/autoload.php' (include_path='/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/archive_tar:/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/console_getopt:/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/pear-core-minimal/src:/var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/matomo/app/vendor/pear/pear_exception:.:/opt/plesk/php/8.2/share/pear') in /var/www/vhosts/inventife.com/httpdocs/wp-content/plugins/DataExport/Controller.php line 11

Troubleshooting Follow these steps to solve the issue or report it to the team:

If you have just updated Matomo to the latest version, please try to restart your web server. This will clear the PHP opcache which may solve the problem.
If this is the first time you see this error, please try refresh the page.
If this error continues to happen, we appreciate if you send the [error report](mailto:hello@matomo.org?subject=Fatal error in Matomo 5.1.0&body=Failed%20opening%20required%20%27%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fplugins%2FDataExport%2Fvendor%2Fautoload.php%27%20%28include_path%3D%27%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fvendor%2Fpear%2Farchive_tar%3A%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fvendor%2Fpear%2Fconsole_getopt%3A%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fvendor%2Fpear%2Fpear-core-minimal%2Fsrc%3A%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2Fmatomo%2Fapp%2Fvendor%2Fpear%2Fpear_exception%3A.%3A%2Fopt%2Fplesk%2Fphp%2F8.2%2Fshare%2Fpear%27%29%20in%20%2Fvar%2Fwww%2Fvhosts%2Finventife.com%2Fhttpdocs%2Fwp-content%2Fplugins%2FDataExport%2FController.php%2011%20using%20PHP%208.2.20) to the Matomo team.

Further troubleshooting

If this error continues to happen, you may be able to fix this issue by disabling one or more of the Third-Party plugins. If you don't know which plugin is causing this error, we recommend to first disable any plugin not created by "Matomo" and not created by "InnoCraft". You can enable plugin again afterwards in the Plugins or Themes page under settings at any time. DataExport 1.1.5 deactivate WordPress 0.1.0 deactivate

If this error still occurs after disabling all plugins, you might want to consider uninstalling some plugins. Keep in mind: The plugin will be completely removed from your platform. all-in-one-wp-migration uninstall duplicator uninstall elementor uninstall elementor-pro uninstall litespeed-cache uninstall matomo uninstall matomo-marketplace-for-wordpress uninstall`

jorgeuos commented 1 month ago

Hi, thank you for submitting this issue.

This issue seems related to installing the plugin in a Wordpress environment. I haven't tested that, but I can post an updated version in a couple of days to resolve that issue.

A quick fix would be to just remove the autoload feature, it is only used to upload backups to AWS S3 Buckets.

MxFxM commented 1 month ago

Thank you for the quick reply!

How would I remove the autoload feature?

jorgeuos commented 1 month ago

I added a condition that checks if the file exists, I assume that your hosting doesn't like absolute paths. Which is probably why you get that error. If you try install it again, could you let me know if it works?