Okay
  Public Ticket #3197950
Salient Core Plugin causes crash
Closed

Comments

  •  3
    Philipp started the conversation

    Hi folks,

    after I bought and installed the latest version of the Salient Theme 3 days ago, I unfortunately have massive problems activating it.
    I've been using Salient in various simple and complex projects (Woocommerce shops included) for a few years now and I've never had these problems because I think it's a f***ing good theme.

    My main problem now is the "Salient Core Plugin".

    My setup:
    - Web hosting at hosteurope.de
    - PHP 8.1 running (8.0 also tested)
    - Wordpress version 6.1.1 for a completely new project.
    - Fresh new MySQL database
    - WP_MEMORY_LIMIT to 512M
    - Salient Child Theme in action
    - No other plugins activated, only
    -- Salient Portfolio
    -- Salient Shortcodes
    -- Salient Widgets
    -- Salient WPBakery Page Builder

    Finally, when I now enable "Salient Core", my Wordpress installation crashes immediately, presenting: "There was a critical error on your site. Learn more about troubleshooting WordPress."

    My web host's PHP error log file contains no entries.

    After several hours of research and testing, I am now at a loss.

    Thanx for your help! :-)

  •  8,403
    Tahir replied

    Hey Again,

    Thanks for continuing to use Salient. Were you able to check for server php errors using this guide: http://premium.wpmudev.org/blog/your-complete-guide-to-troubleshooting-wordpress/

    Thanks


    ThemeNectar Support Team 

  •  3
    Philipp replied

    Hey Tahir,
    thanx 4 your rapid approach!

    I checked the following from your guide:

    1. PHP version


    2. Logfiles:

    • error_log doesn't exist
    • unfortunately Plesk and CPanel is not provided
    • Error-Logfile for PHP 8.1 provided by Hosting Partner contains no content
    • Debugging: This debug.log-thing doesn't work, the file doesn't get any entries


  •  1,644
    Judith replied

    Hi Philipp,

    Please refer to this article as well and let us know how this goes:https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-critical-error-in-wordpress/.

    Thanks.

  •  3
    Philipp replied

    Hi, Judith,

    everything in the article I've already done multiple times. Nevertheless I also pushed a completely new WordPress package on the web space. 
    Same result: when activating Salient Core we have a black hawk down, Sir.

    I run the installation with several default themes, all is fine. Even with an Twenty Twenty-One or -Two Theme activated the systems crashes again, when I activate the Salient Core Plugin.

    Any further ideas?


  •  1,644
    Judith replied

    Hi Phillipp,

    I would request you create a staging site then send us the login details of the staging site so that we can debug the issue from their so that we don't break your live site.

    Thanks.

  •   Philipp replied privately
  •  1,644
    Judith replied

    Hi Phillip,

    Seems your logins are not working, please check and resend.

    Thanks.

  •   Philipp replied privately
  •  8,403
    Tahir replied

    Hey Again,

    "From our team to yours, happy New Year! We hope your holiday season was a special one."

    I cant seem to recreate the issue after logging in and installing the Salient Theme as well as Salient Core Plugin.

    Thanks


    ThemeNectar Support Team 

  •  3
    Philipp replied

    Fantastic, Tahir! As I told you before, from now on you run under "Tahir superstar" ;-)

    And now it would be mesmerizing to know, what exact magic you did to my website, that I haven't done several times before. Anything else than reinstalling the Theme? If so, than it seems to me, that my download of the Theme was some kinda broken.

  •  8,403
    Tahir replied

    Hey Again,

    "You're welcome! I'm happy to have been able to help. I did not do anything after logging in. Its possible the Theme Reinstall fixed any missing files.

    Thanks 



    ThemeNectar Support Team 

  •  3
    Philipp replied

    Hi, Tahir,
    sorry for writing again... but the error occured once again.
    Having built some posts, pages, and the first portfolio element in the meantime I now clicked on the SALIENT menu-item in the WP-Backend-menu to reach the General Settings. And boom, baby: WSoD with "There was a critical error on your site."

    Can't get to Salient's Theme menu.

    Switched all Plugins off - same result.

    Changed from Child to main Salient theme - same result.

    Everything else is working fine. 

    Seems to be time for another magic Tahir move...

    Attached files:  error.png

  •  8,403
    Tahir replied

    Hey Again,

    You seem to have a security plugin which could be causing this issue. Also i can now loginsmile.png .

    Best 


    ThemeNectar Support Team 

  •  3
    Philipp replied

    I had iThemes Security on board, but not activated.

    I deleted the plugin right now, but it doesn't help.

  •  8,403
    Tahir replied

    Were you able to check the php error log file ?. The Ftp credentials provided dont allow any edits so i cant turn on debug mode for now.

    Thanks


    ThemeNectar Support Team 

  •  3
    Philipp replied

    Please check it again, your FTP-User provided by me is now able to edit files. (Host Europe seems to differentiate between two types of ftp-users. I wasn't aware of that.)

  •  8,403
    Tahir replied

    Unfortunately i still cant log the error codes using FTP . Please contact your hosting provider and ask them to check the server logs for you and let us know.

    Thanks 


    ThemeNectar Support Team 

  •  3
    Philipp replied

    And here we go, dear Tahir:

    This is the line in the server error logfile, that appears, when I hit the SALIENT menu-item in the WP-Backend-menu to reach the General Settings:


    [Sat Jan 07 23:07:02 2023] [php:error] [pid 7313] [client 88.209.33.87] [host wp1033460.server-he.de] PHP Fatal error:  Uncaught TypeError: ftp_fput(): Argument #1 ($ftp) must be of type FTP\\Connection, null given in /is/htdocs/wp1033460_7V796ANMK2/wp/wp-admin/includes/class-wp-filesystem-ftpext.php:212\nStack trace:\n#0 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-admin/includes/class-wp-filesystem-ftpext.php(212): ftp_fput(NULL, '/is/htdocs/wp10...', Resource id #715, 2)\n#1 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-content/themes/salient/nectar/helpers/dynamic-styles.php(345): WP_Filesystem_FTPext-]put_contents('/is/htdocs/wp10...', '.nectar-color-a...', 420)\n#2 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-includes/class-wp-hook.php(308): nectar_generate_options_css(Array)\n#3 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-includes/class-wp-hook.php(332): WP_Hook-]apply_filters('', Array)\n#4 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-includes/plugin.php(517): WP_Hook-]do_action(Array)\n#5 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/extensions/import_export/extension_import_export.php(84): do_action('redux/options/s...', Array)\n#6 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-content/themes/salient/nectar/redux-framework/ReduxCore/framework.php(2513): ReduxFramework_extension_import_export-]__construct(Object(ReduxFramework))\n#7 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-content/themes/salient/nectar/redux-framework/ReduxCore/framework.php(335): ReduxFramework-]_register_extensions()\n#8 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/class.redux_api.php(117): ReduxFramework-]__construct(Array, Array)\n#9 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/class.redux_api.php(129): Redux::loadRedux('salient_redux')\n#10 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-includes/class-wp-hook.php(308): Redux::createRedux('')\n#11 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-includes/class-wp-hook.php(332): WP_Hook-]apply_filters(NULL, Array)\n#12 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-includes/plugin.php(517): WP_Hook-]do_action(Array)\n#13 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-settings.php(595): do_action('after_setup_the...')\n#14 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-config.php(146): require_once('/is/htdocs/wp10...')\n#15 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-load.php(50): require_once('/is/htdocs/wp10...')\n#16 /is/htdocs/wp1033460_7V796ANMK2/wp/wp-admin/admin.php(34): require_once('/is/htdocs/wp10...')\n#17 {main}\n  thrown in /is/htdocs/wp1033460_7V796ANMK2/wp/wp-admin/includes/class-wp-filesystem-ftpext.php on line 212
    


    Does it help?

  •  982
    ThemeNectar replied

    Hey Philippsmile.png

    Thanks for posting that error -- It's useful and clearly explains the underlying issue. 

    Apparently,  your WP setup has some abnormal FTP access, most likely because it's a staging instance. I've corrected the error by explicitly adding in the FileSystem method within your wp-config.php file with the following line:

    define('FS_METHOD','direct');

    Kind regards

  •  3
    Philipp replied

    Hey, Tahir,

    wow, that's cool. Many, many thanx!! It's working right now.

    (I now have some issues with updating the language plugin Polylang (saying some inconsistency in file right attributes), but I think, I'll get it sorted out.

    I will check the system another 2 or 3 days and give you feedback. But for now, it looks goooood! 

    Have a great day!


  •  3
    Philipp replied

    Hi, Tahir,

    working with Theme related topics works perfectly smooth right now. Wonderful!

    But since you switched the ftp method, I can't update or even install both plugins and other themes.

    It says: "Update Failed: The update could not be installed because some files could not be copied. This is mostly due to inconsistent file permissions."

    I tried ot manage it via directory and file right attributes (750, 755, 777 etc. / 640, 660 etc.), but didn't work.

    What should be changed?

    Thank you very much for your staying power.

  •  982
    ThemeNectar replied

    Hey Philipp,

    Can you kindly verify with your hosting company that apache is the owner of your core WordPress files instead of your personal user? 

  • Jeff replied

    Our site uses the Salient theme and was working fine until a few days ago.  For some reason when we try and activate the theme it gives the error "There has been a critical error on this website. Please check your site admin email inbox for instructions."  The problem is we didn't develop this site and the developer is no longer in the business. Any advice on hwo we can resolve this?

  •  982
    ThemeNectar replied

    Hey Jeff, what you're describing is an unrelated issue to this current ticket. Please open a separate ticket with the details of your site so that we can assist.

    Kind regards

  • Jeff replied

    Hi ThemeNectar:

    I tried to open a separate ticket, but we didn't purchase the Salient Theme, the developer did.  As a result, the system won't take my ticket since there is no valid purchase code.  Any ideas on where we could get help to resolve this?

    Thanks,

    Jeff

  •  982
    ThemeNectar replied

    If the developer didn't pass the license details to you, I would reach out to Envato directly to see if they can assist in moving the license to your account. If you're on an older version of Salient (< 14), you'll likely run into PHP issues if your hosting company recently upgraded you to PHP 8+. The solution for that would be to upgrade your version of Salient: https://themenectar.com/docs/salient/updating-salient/

  •  3
    Philipp replied

    Hey, folks,

    just a short feedback from me. You asked me this to do:

    >> Can you kindly verify with your hosting company that
    >> apache is the owner of your core WordPress files instead
    >> of your personal user? 

    Well, I did, and got this reply:

    >> You have uploaded all files with the FTP user who has
    >> FTP user rights. This means that our Apache server cannot
    >> create or change any files. Please log into your hosting
    >> package and set the user to WP user rights for all files RECURSIV.
    >> After that you should be able to install again.

    I did, and immediately all errors disappeared. MAGIC! Just saying...

    My conclusion: Well, you never stop learning. And you'll ever need competent and kind support-people, who help. Thank you very much!

    Made my day
    philipp