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

Failed opening required 'Zend/Registry.php' #634

Closed
anonymous-matomo-user opened this issue Mar 26, 2009 · 14 comments
Closed

Failed opening required 'Zend/Registry.php' #634

anonymous-matomo-user opened this issue Mar 26, 2009 · 14 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

After Upgrade to the lasted versions, i get a lot of this error messages:

Warning: require_once(Zend/Registry.php) [function.require-once]: failed to open stream: No such file or directory in mydomain.ch/subdomains/piwik/httpdocs/core/ErrorHandler.php on line 12

Fatal error: require_once() [function.require]: Failed opening required ‘Zend/Registry.php’ (include_path=‘.:.:’) in mydomain.ch/subdomains/piwik/httpdocs/core/ErrorHandler.php on line 12

All files are existing and new upload with no success.

@mattab
Copy link
Member

mattab commented Mar 29, 2009

was it working before the upgrade to the new version? can you try to apply this patch and go to piwik/ and copy paste what is shown on screen (either “false” or the string of include path)

```
Index: index.php
===============
- index.php (revision 1035)
+ index.php (working copy)
@ -17,11 +17,12 @
define(‘PIWIK_INCLUDE_PATH’, dirname(FILE));
}

-set_include_path(PIWIK_INCLUDE_PATH
+$success = set_include_path(PIWIK_INCLUDE_PATH
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . ‘/libs/’
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . ‘/plugins/’
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . ‘/core/’
. PATH_SEPARATOR . get_include_path());
+var_dump($success);exit;

require_once “core/testMinimumPhpVersion.php”;

```

@robocoder
Copy link
Contributor

ping

@anonymous-matomo-user
Copy link
Author

I applied that patch now as I have exactly the same problem with the latest.zip (downloaded today, april 26 2009).

The output is now: bool(false)

In case you need to know more about my server config. Here's where I try to run it: http://repogen.simplylinux.ch/phpinfo.php (and here the patched index: http://repogen.simplylinux.ch/piwik/index.php )

@robocoder
Copy link
Contributor

If you set the php include path in your apache configuration or .htaccess, piwik cannot set it.

@anonymous-matomo-user
Copy link
Author

??? I don't understand what you mean.

@robocoder
Copy link
Contributor

Your phpinfo indicates that you have locally overridden the master php.ini value for include_dir.

If you can't see this in your Apache configuration, check your .htaccess files. These are applied recursively to subdirectories, so you you should check your piwik folder and parent folders.

@anonymous-matomo-user
Copy link
Author

There's nothing there that overrides anything now. I did include the path in the master because by default there is a "." as include. I have no idea how to take that out.

@robocoder
Copy link
Contributor

My guess is that you would comment out the line.

@anonymous-matomo-user
Copy link
Author

Hmmm, I added now those three dirs manually to the include path in confixx.

The include path in phpinfo shows now as:

.:/usr/share/php:/var/www/web30/html/piwik/libs:/var/www/web30/html/piwik/plugins:/var/www/web30/html/piwik/core

However now I get this error:

Fatal error: Class 'Piwik_Common' not found in /var/www/web30/html/piwik/core/Piwik.php on line 98

@robocoder
Copy link
Contributor

You're missing the piwik root directory.

@anonymous-matomo-user
Copy link
Author

Well, added the piwik root directory and it looks now like:

.:/usr/share/php:/var/www/web30/html/piwik:/var/www/web30/html/piwik/libs:/var/www/web30/html/piwik/plugins:/var/www/web30/html/piwik/core

However the error persists:

Fatal error: Class 'Piwik_Common' not found in /var/www/web30/html/piwik/core/Piwik.php on line 98

@robocoder
Copy link
Contributor

My guess is that you have a /usr/share/php/Log.php file which Piwik finds instead of its own core/Log.php. Move /usr/share/php to the end of the include patch (as in Piwik's index.php).

@robocoder
Copy link
Contributor

e.g., /var/www/web30/html/piwik:/var/www/web30/html/piwik/libs:/var/www/web30/html/piwik/plugins:/var/www/web30/html/piwik/core:/usr/share/php

@anonymous-matomo-user
Copy link
Author

Finally :) thx for the help

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants