• Resolved tonisalles

    (@tonisalles)


    Hi,

    I installed the plugin on the site and everything ok. Then I needed to change the domain (URL) of the site and the plugin did not work anymore:

    Show this messages:

    Warning: fopen(/home/poloc013/public_html/2018/wp-content/plugins/material-design-for-contact-form-7/cf7-material-design.php): failed to open stream: No such file or directory in /home/poloc013/public_html/wp-includes/functions.php on line 4832

    Warning: fread() expects parameter 1 to be resource, boolean given in /home/poloc013/public_html/wp-includes/functions.php on line 4835

    Warning: fclose() expects parameter 1 to be resource, boolean given in /home/poloc013/public_html/wp-includes/functions.php on line 4838

    Can you help me?

    Thanks,
    Toni Salles

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author GusRuss89

    (@gusruss89)

    Hi @tonisalles

    Can I see your website? What is the URL? A couple of suggestions.

    First, try uninstalling (not just deactivating) and then reinstalling the plugin. You will not lose any configuration settings by doing this. If this works, please let me know. If it doesn’t work, a few other things to check:

    Does deactivating the plugin fix the issue? (if so, please let me know)
    Did you update your site url in wp-config.php?
    Is your site on the same server, with the same files? If not, make sure to move the plugin files over to the new server in wp-content/plugins.

    Thanks,
    Angus

    Hello Angus,

    I seem to have the same issue:
    Warning: fopen(/home4/…/public_html/4csmedia.com/wp-content/plugins/material-design-for-contact-form-7/cf7-material-design.php): failed to open stream: No such file or directory in /home4/detoxtolive/public_html/websites/4csmedia.com/wp-includes/functions.php on line 4832

    Warning: fread() expects parameter 1 to be resource, boolean given in /home4/detoxtolive/public_html/websites/4csmedia.com/wp-includes/functions.php on line 4835

    Warning: fclose() expects parameter 1 to be resource, boolean given in /home4/…/public_html/websites/4csmedia.com/wp-includes/functions.php on line 4838

    Warning: Cannot modify header information – headers already sent by (output started at /home4/…./public_html/websites/4csmedia.com/wp-includes/functions.php:4832) in /home4/…/public_html/websites/4csmedia.com/wp-admin/includes/misc.php on line 1114

    Tried your suggestions but to no avail.

    I also get the following error after re-installing and re-activating the plugin”
    The plugin generated 713 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    the website address is 4csmedia.com

    Kindest regards
    Robert

    Plugin Author GusRuss89

    (@gusruss89)

    Hi @4csmedia

    Is there any chance I could get wp-admin and cpanel/ftp/ssh (or whatever you use for files) access to your site to debug this?

    You can email me the details at [email protected]. (Do NOT post any login details here). Feel free to use/create a temporary wp-admin account that you can delete later.

    Thanks,
    Angus

    • This reply was modified 7 years, 3 months ago by GusRuss89.

    Hello Angus,

    I send you an email explaining I solved the issue.
    I transferred the complete site to a new host and still had the issue there as well.

    But in the error message, I saw a reference to the path on the old server.
    I searched the database and found 2 references to the old path in the options table.
    I changed those 2 to the path on the new server and ‘hey presto’, problem solved.

    Kindest regards,
    Robert
    4csmedia.com

    Plugin Author GusRuss89

    (@gusruss89)

    Hi Robert,

    Thanks for letting me know about this. I will fix this issue today, and update this thread when I release an update.

    Thanks again,
    Angus

    Plugin Author GusRuss89

    (@gusruss89)

    I’ve confirmed this issue is related to Freemius – the part of the plugin that handles payments. I’ve been in touch with Freemius about it and they have already fixed the issue in their development version, which will be available soon. So the next release of this plugin should fix the issue.

    If anyone runs into this problem in the mean-time, you can fix it the way that Robert did. I.e.

    1. Deactivate the material design plugin on your NEW server
    2. Install the Search & Replace plugin
    3. Create a PHP file called dirname.php and put this in it.

    <?php echo __DIR__; ?>

    4. Upload that file to the wp-content/plugins directory of both your old AND new servers.
    5. Navigate to the file in a web browser on both your old and new URLs and leave them open in separate tabs.

    https://www.myoldurl.com/wp-content/plugins/dirname.php – this will output your OLD site’s plugins path
    https://www.mynewurl.com/wp-content/plugins/dirname.php – this will output your NEW site’s plugins path
    (obviously you change everything before ‘/wp-content’ to your actual site urls)

    6. In your NEW WordPress, go to Tools > Search & Replace
    7. Click “Create SQL File”, then download it when it’s done – this is your backup in case something goes wrong
    8. Go to the “Search and Replace” tab, then in the “Search For” box, enter the OLD site’s plugins path (copy it from the tab you left open earlier).
    9. In the “Replace With” box, enter the NEW site’s plugins path.
    10. Select the “wp_options” table (may have a different prefix than ‘wp_’, that’s fine)
    11. Uncheck “Dry Run”, and click “Do Search & Replace”
    12. Reactivate the material design plugin – everything should now be fixed!!?
    13. DELETE the dirname.php file from your old and new servers

    Any questions ask me directly at [email protected]

    Thanks,
    Angus

    Plugin Author GusRuss89

    (@gusruss89)

    This issue should be fixed in the latest version of the plugin (1.5.18).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error after change URL site’ is closed to new replies.