WPIntell

Source evidence

Fatal Error Message

My Simple Space · support · 2020-02-24T00:37:00+00:00

mixedsentiment
highseverity
0.95relevance
14replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 13 rows with source links

15.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

11 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
SeeJaneB resolved
Hi, I recently migrated a site I manage to a new host and in the process, there is now an error message associated with this plugin. On my dashboard, the simple space report says “There has been a critical error on your website. Please check your site admin email inbox for instructions.” under the Contents section of the report. Here is the information that WordPress sent in an email after detecting the error: Error Details ============= An error of type E_ERROR was caused in line 224 of the file /www/wp-content/plugins/my-simple-space/my-simple-space.php. Error message: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/wordpress/wp-content): failed to open dir: No such file or directory in /www/wp-content/plugins/my-simple-space/my-simple-space.php:224 Stack trace: #0 /www/wp-content/plugins/my-simple-space/my-simple-space.php(224): RecursiveDirectoryIterator->__construct(‘/wordpress/wp-c…’, 0) #1 /www/wp-content/plugins/my-simple-space/my-simple-space.php(180): mss_dir_size(‘/wordpress/wp-c…’) #2 /wordpress/wp-admin/includes/template.php(1343): mss_dashboard_widget(”, Array) #3 /wordpress/wp-admin/includes/dashboard.php(235): do_meta_boxes(Object(WP_Screen), ‘side’, ”) #4 /wordpress/wp-admin/index.php(148): wp_dashboard() #5 {main} thrown Here is a screenshot of what I am seeing https://ibb.co/DG1V8cN I checked with my new hosting provider and they thought maybe it was a plugin compatibility issue, but I did not make any changes to the plugins I have installed since migration. I have the same ones I have always had. Any insight? The page I need help with: [ log in to see the link] Thanks for bringing this to my attention. Apologies for not seeing this soon. Will look into this and provide a solution shortly. Can you install the clear transients from the dashboard plugin ( https://wordpress.org/plugins/clear-transient-from-dashboard/ ), which will add a way to clear out transients through a dashboard widget. Click the “Clear Transients” button and see if that resolves the issue. What happens is my plugin caches the data as transients within the dashboard and this will let us know if that is causing the issue. Hopefully this fixes it. You can remove that plugin once done if desired. Please update if that suggestion fixed the issue for you. Hi @mannweb , sorry I didn’t get to your suggestion until now. Unfortunately, your plugin is still throwing an error. I installed the clear transient from dashboard plugin and cleared the transients a few times by clicking the button, and then reactivated your plugin and found that there are still errors. See screenshot: http://tinyurl.com/sgy4kaf I’m going to deactivate both plugins again while I wait for your response. Thanks, Jane I also got another email when I reactivated My Simple Space telling me there was a fatal error again: Error Details ============= An error of type E_ERROR was caused in line 224 of the file /www/wp-content/plugins/my-simple-space/my-simple-space.php. Error message: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/wordpress/wp-content): failed to open dir: No such file or directory in /www/wp-content/plugins/my-simple-space/my-simple-space.php:224 Stack trace: #0 /www/wp-content/plugins/my-simple-space/my-simple-space.php(224): RecursiveDirectoryIterator->__construct(‘/wordpress/wp-c…’, 0) #1 /www/wp-content/plugins/my-simple-space/my-simple-space.php(180): mss_dir_size(‘/wordpress/wp-c…’) #2 /wordpress/wp-admin/includes/template.php(1343): mss_dashboard_widget(”, Array) #3 /wordpress/wp-admin/includes/dashboard.php(235): do_meta_boxes(Object(WP_Screen), ‘side’, ”) #4 /wordpress/wp-admin/index.php(148): wp_dashboard() #5 {main} thrown Ok. Reread what you initially posted and reposted again. I’m seeing a reference to /wordpress/wp-content and the plugin is under /www/wp-content/plugins/my-simple-space/my-simple-space.php (notice the /wordpress and /www at the beginning). So it seems to be looking for wp-content inside a wordpress folder, which is why it’s throwing the error. Let me look into this. Reverted a change made in 1.2.5 and hoping that updating to 1.2.6 fixes the issue you are seeing (and does not break anything for anyone else) 😀 Unfortunately, the issue is still present. I just updated the plugin and activated to find error is still being displayed on the dashboard: https://tinyurl.com/rwsg5zw Could you click through to my profile, click my site link and send me a message through there. I really want to get to the core of the problem, but feel we might need to do this one on one. I believe the problem is line 112, which gets the document root. Can you try a few things for me. Change line 112 from $homepath = ( get_home_path() === "/" ) ? ABSPATH : get_home_path(); to $homepath = ABSPATH; and let me know if that fixes it. I believe this line is actually returning the second value get_home_path() which apparently seems to be returning something different there. Hi sorry for the delay again. I swapped out the code, and there was no change. I even reinstalled the plugin to clear transients and cleared my cache, but still have a fatal error. I can send you a message over on your website so we can communicate by email at this point! Have changed the way the wp-content & plugins folder path are discovered, which hopefully will correct this, as WP is installed in a manner I did not account for in the past. Hopefully this fixes that issue. Still need to rethink how to calculate entire site, when folders are not in the same root folder. That will be coming in a future update. 1.2.7 Has been pushed up to the WP repository. This reply was modified 6 years, 2 months ago by idowebwork . Glad to hear that the changes have at least fixed the plugin to work without throwing an error. Will address correcting the entire site calculation on sites where the wp-content folder has been placed outside the typical setup in a future release, so that the totals add up. Version 1.2.8 should now correctly add in the wp-content folder, if outside the main path.

Comments

14 shown
idowebwork 2020-03-08T04:18:00+00:00

Thanks for bringing this to my attention. Apologies for not seeing this soon. Will look into this and provide a solution shortly.

idowebwork 2020-03-08T04:29:00+00:00

Can you install the clear transients from the dashboard plugin ( https://wordpress.org/plugins/clear-transient-from-dashboard/ ), which will add a way to clear out transients through a dashboard widget. Click the “Clear Transients” button and see if that resolves the issue. What happens is my plugin caches the data as transients within the dashboard and this will let us know if that is causing the issue. Hopefully this fixes it. You can remove that plugin once done if desired.

idowebwork 2020-03-17T22:30:00+00:00

Please update if that suggestion fixed the issue for you.

SeeJaneB 2020-03-18T06:21:00+00:00

Hi @mannweb , sorry I didn’t get to your suggestion until now. Unfortunately, your plugin is still throwing an error. I installed the clear transient from dashboard plugin and cleared the transients a few times by clicking the button, and then reactivated your plugin and found that there are still errors. See screenshot: http://tinyurl.com/sgy4kaf I’m going to deactivate both plugins again while I wait for your response. Thanks, Jane

SeeJaneB 2020-03-18T06:34:00+00:00

I also got another email when I reactivated My Simple Space telling me there was a fatal error again: Error Details ============= An error of type E_ERROR was caused in line 224 of the file /www/wp-content/plugins/my-simple-space/my-simple-space.php. Error message: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/wordpress/wp-content): failed to open dir: No such file or directory in /www/wp-content/plugins/my-simple-space/my-simple-space.php:224 Stack trace: #0 /www/wp-content/plugins/my-simple-space/my-simple-space.php(224): RecursiveDirectoryIterator->__construct(‘/wordpress/wp-c…’, 0) #1 /www/wp-content/plugins/my-simple-space/my-simple-space.php(180): mss_dir_size(‘/wordpress/wp-c…’) #2 /wordpress/wp-admin/includes/template.php(1343): mss_dashboard_widget(”, Array) #3 /wordpress/wp-admin/includes/dashboard.php(235): do_meta_boxes(Object(WP_Screen), ‘side’, ”) #4 /wordpress/wp-admin/index.php(148): wp_dashboard() #5 {main} thrown

idowebwork 2020-03-18T12:15:00+00:00

Ok. Reread what you initially posted and reposted again. I’m seeing a reference to /wordpress/wp-content and the plugin is under /www/wp-content/plugins/my-simple-space/my-simple-space.php (notice the /wordpress and /www at the beginning). So it seems to be looking for wp-content inside a wordpress folder, which is why it’s throwing the error. Let me look into this.

idowebwork 2020-03-18T12:52:00+00:00

Reverted a change made in 1.2.5 and hoping that updating to 1.2.6 fixes the issue you are seeing (and does not break anything for anyone else) 😀

SeeJaneB 2020-03-18T16:03:00+00:00

Unfortunately, the issue is still present. I just updated the plugin and activated to find error is still being displayed on the dashboard: https://tinyurl.com/rwsg5zw

idowebwork 2020-03-21T02:06:00+00:00

Could you click through to my profile, click my site link and send me a message through there. I really want to get to the core of the problem, but feel we might need to do this one on one.

idowebwork 2020-03-21T02:41:00+00:00

I believe the problem is line 112, which gets the document root. Can you try a few things for me. Change line 112 from $homepath = ( get_home_path() === "/" ) ? ABSPATH : get_home_path(); to $homepath = ABSPATH; and let me know if that fixes it. I believe this line is actually returning the second value get_home_path() which apparently seems to be returning something different there.

SeeJaneB 2020-03-24T19:19:00+00:00

Hi sorry for the delay again. I swapped out the code, and there was no change. I even reinstalled the plugin to clear transients and cleared my cache, but still have a fatal error. I can send you a message over on your website so we can communicate by email at this point!

idowebwork 2020-03-26T10:21:00+00:00

Have changed the way the wp-content & plugins folder path are discovered, which hopefully will correct this, as WP is installed in a manner I did not account for in the past. Hopefully this fixes that issue. Still need to rethink how to calculate entire site, when folders are not in the same root folder. That will be coming in a future update. 1.2.7 Has been pushed up to the WP repository. This reply was modified 6 years, 2 months ago by idowebwork .

idowebwork 2020-03-27T04:48:00+00:00

Glad to hear that the changes have at least fixed the plugin to work without throwing an error. Will address correcting the entire site calculation on sites where the wp-content folder has been placed outside the typical setup in a future release, so that the totals add up.

idowebwork 2020-04-06T02:14:00+00:00

Version 1.2.8 should now correctly add in the wp-content folder, if outside the main path.