We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Recurring Downtime - Help Please?! - Error_Log: PHP Fatal error: Cannot access property OW_Plugin::$dirName in ow_cor/plugin.php (line 65) | Forum

Blaire
Blaire Dec 5
Site has been down all day for nearing 12 hours. Infamous error 500. I have not even signed onto it for 2 days because I've been out of town but I've had many users contact me (userbase is over 10k so some frequent it a lot and see errors faster than I do! Haha). This is the only error in the error log. How do I fix this?

[05-Dec-2018 17:39:22 America/Chicago] PHP Fatal error:  Cannot access  property OW_Plugin::$dirName in /home/site/public_html/ow_core/plugin.php on line 65

php version still 5.6
ow_core folder perms 755
ow_core/plugin.php file perms 644
ow_core/plugin.php file line 65 is literally just:

{




This has been happening about once every 3 days at this point now (over the course of the month, I'd say), where the site will mysteriously go down for about 12-14 hours before magically just coming back up. I really need to fix this because people are leaving the site due to it's instability and that's sad. So, please, if you have ANY ideas please let me know.
The Forum post is edited by Blaire Dec 5
ViXiV Technologies

Here is the code you're referring to:
public function __construct( BOL_Plugin $plugin )

{

$this->dirName = trim($plugin->getModule());

$this->key = trim($plugin->getKey());

$this->active = (bool) $plugin->isActive;

$this->dto = $plugin;

}


Error:
Cannot access  property OW_Plugin::$dirName


Probably having issues with setting dirName from Plugin's Module name: 

$this->dirName = trim($plugin->getModule());


What is unclear is if this issue is with the code calling this method or if it is Oxwall having an issue pulling the plugin module name which is a db entry in ow_base_plugin:


mysql> describe ow_base_plugin;

+-----------------------+------------------+------+-----+---------+----------------+

| Field                 | Type             | Null | Key | Default | Extra          |

+-----------------------+------------------+------+-----+---------+----------------+

| id                    | int(11)          | NO   | PRI | NULL    | auto_increment |

| title                 | varchar(255)     | NO   |     | NULL    |                |

| description           | text             | NO   |     | NULL    |                |

| module                | varchar(255)     | NO   | UNI | NULL    |                |

| key                   | varchar(255)     | NO   | UNI | NULL    |                |

| developerKey          | varchar(255)     | YES  |     | NULL    |                |

| isSystem              | tinyint(1)       | NO   |     | NULL    |                |

| isActive              | tinyint(1)       | NO   |     | NULL    |                |

| adminSettingsRoute    | varchar(255)     | YES  |     | NULL    |                |

| uninstallRoute        | varchar(255)     | YES  |     | NULL    |                |

| build                 | int(11)          | NO   |     | 0       |                |

| update                | tinyint(1)       | NO   |     | 0       |                |

| licenseKey            | varchar(255)     | YES  |     | NULL    |                |

| licenseCheckTimestamp | int(10) unsigned | YES  | MUL | NULL    |                |

+-----------------------+------------------+------+-----+---------+----------------+

14 rows in set (0.00 sec)


This could be a plugin issue or it could be an issue in Oxwall itself...


See if you can identify any further information related to this issue in the ow_logs and your web server's logs.


Please also ensure you don't have any plugins with an empty value for module in ow_base_plugin

The Forum post is edited by ViXiV Technologies Dec 6