Ticket #603 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

Fatal error: Class 'owa_db_' not found - Wordpress installation

Reported by: pwnz00 Owned by: padams
Priority: critical Milestone: 1.5.2
Component: wordpress plugin Version: 1.5
Keywords: fatal error,not activated Cc:

Description

Hello,
downlaoded latest [built 29 jan] version of OWA. Uploaded whole dir to 'plugins' then choosen from plugins menu. The i get the error:

Plugin could not be activated because it triggered a fatal error.
Fatal error: Class 'owa_db_' not found in */public_html/wp-content/plugins/owa/owa_coreAPI.php on line 102

im running latest wordpress and no cache plugin.

Change History

  Changed 3 months ago by admin

  • version changed from 2.0 to 1.5

What operating system is the server running? did OWA create the owa-config.php file in it's own directory? if not, it might be a permission problem. You can create that file by hand to resolve if you can't change the permissions on that directory. (see the install page on the wiki for more info).

If OWA did create the owa-config.php file, then there is a bug. Please sanitize the file and attach it here.

  Changed 3 months ago by pwnz00

Hey,
owa did not create the file. I made 0byte file myself with hands but doesnt change anything.

What kind of permissions should i set on folder/files then?

Heres system:
PHP 5.2.11 (cli) (built: Dec 30 2010 14:08:47)
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v4.0.9, Copyright (c) 2002-2011, by ionCube Ltd., and
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

[root@host ~]# php -i | grep safe_mode
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sql.safe_mode => Off => Off
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH

[root@host ~]# php -i | grep open_basedir
open_basedir => no value => no value

  Changed 3 months ago by admin

The directory needs to be writable by the user that PHP is running under.
To work around this do not create a zero length file. Instead just copy the owa-config-dist.php file to owa-conf.php and fill in the database connection details by hand.

  Changed 3 months ago by pwnz00

ive se 775 on dirs and the critical files - yet still the same.

Should i fillin data with same as wordpress or create extra db in the panel [what about this owa_ prefix?]

  Changed 3 months ago by admin

You can use the same DB as wordpress, or make a new DB if you want to separate the two. doesn't matter.

  Changed 3 months ago by pwnz00

Ok that did it but now it asks for update. then it writes:
These updates must be applied using the command line interface (CLI). Run '/path/to/php cli.php cmd=update' from your server's command shell to apply these updates.

I did ru nthe command, yet still no changes and still i cannot use analytics.
[root@host owa]# /usr/bin/php cli.php cmd=update
X-Powered-By: PHP/5.2.11
Content-type: text/html

what can be missing here?

follow-up: ↓ 8   Changed 3 months ago by admin

are you upgrading from a prior version of OWA? When you say that you still cannot use analytics what do you mean? What is the error you are presented with now? Attach a screenshot also if you can.

in reply to: ↑ 7   Changed 3 months ago by pwnz00

  • status changed from new to closed
  • resolution set to fixed

Just for anybody else who finds this with google: on the end i foudn it easier to install in other domain and justthen put trackin code for WP instead of making the plugin work. Seems there was perm issues - no biggie tho. Now runs smooth

  Changed 3 months ago by admin

This is actually due to a race condition in the wordpress plugin. fixed in #1628.

  Changed 3 months ago by admin

  • milestone set to 1.5.2
Note: See TracTickets for help on using tickets.