WordPress.org

Ready to get started?Download WordPress

Forums

Parse error Problem (30 posts)

  1. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    Hello all

    I seem to be getting the following error in my wp-config folder after I moved website providers (but kept the same domain), went in to change some of the settings so the site would work correctly and now I am getting this error.

    Parse error: syntax error, unexpected '*' in /home/danielem/public_html/wp-config.php on line 17

    My website provider said they have checked the code and it should work, so whats the problem?

  2. Tara
    Member
    Posted 1 year ago #

    Try:
    - switching to the default theme by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides. - resetting the plugins folder by FTP or phpMyAdmin.

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    What is in line 17?

  4. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    According to my hosting provider there was a line in the wp-config.php that needed to be commented out that wasn't.

    The error is gone, but the site is blank now.

    Any ideas on how to fix this problem too :/

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    What line?

  6. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    It isnt a line thing, the site is gone completely now. All the errors are fixed but its just blank? Could it be a database thing since I moved hosting providers ?

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    According to my hosting provider there was a line in the wp-config.php that needed to be commented out that wasn't.

    What line?

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    Give us something to go on, please.

  9. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    What I have told you, is all I know. Thats all the hosting provider told me. Now that there is no website I am being told it could be a database error, thats what my hosting provider has told me.

    They are advising going into the database in phpmyadmin, and go to the wp-options table, you should see different options you have to edit.

    You would have to edit each path so that it states /home/danielem/public_html/<path_to_file>

    However I am not a pro at this and they wont offer me very much support, I dont even know if this will fix the issue, all I know is that when i go to website (below) , all I get is a blank screen)

    http://www.danielemmerson.net

    Even though once I downloaded all the FTP files from my old hosting provider , then changed the wp-config.php file for the correct information , it is just white???

    Any ideas?

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    Unless you can give us more to go on, we cannot help. We're good but we're not psychic. ;-)

    Who are your hosts?

  11. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    My previous host was servage.net and my new host is machighway.com

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    Unless they have a very solid background in WordPress, I would suggest that you take their "advice" with a large pinch of salt. Most hosts do not know a great deal about WordPress.

    What line did your hosts comment out of your wp-config.php file?

  13. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    I am not sure, as I do not know very much code.

    Below is the line that originally was causing the issue

    "/* MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('WP_CACHE', true); //Added by WP-Cache Manager
    define( 'WPCACHEHOME', '/home/danielem/public_html/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
    define('DB_NAME', [redacted]);"

    I know it has to do with the above that I posted and I was thinking it had fixed the issue because to begin with i was getting a

    The requested URL "insert url here" was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use

    so then I corrected the issues in wp-config.php file and changed some stuff in the .htaccess file to refresh everything and now I am getting a blank screen as you can see from the link I provided.

  14. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    The website http://www.danielemmerson.net should be loading but its just a blank white screen and I get the same screen when I try to login to the wordpress page to edit or anything.

  15. esmi
    Forum Moderator
    Posted 1 year ago #

    When did you install and activate the caching plugin?

  16. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    Sorry?

    I am not understanding what your talking about with ' caching plugin'?

    All I did was download all the FTP files from my previous hosting provider ' servage' , changed some of the wordpress documents and reuploaded it to 'machighway' as directed. I could check and see if there is a caching plugin? What if I dont have it?

    Any ideas on how to fix the problem?

  17. esmi
    Forum Moderator
    Posted 1 year ago #

    define( 'WPCACHEHOME', '/home/danielem/public_html/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager

    This site has/had a caching plugin installed & active - possibly on your previous hosts? Looks like you're trying to move or clone a site that uses a caching plugin. And that could be problematic. It would better if you disabled caching before you carried out the site move/copying.

  18. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    Could it be possible to just delete the plugin from the wordpress plugin page on FTP as I have no access to any login page or anything from the wordpress account page, it displays the same blank white page as my website does.??

  19. esmi
    Forum Moderator
    Posted 1 year ago #

    Not with a caching plugin, no. Deactivating them is often a lot more complex.

  20. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    How could I fix it then?? Please instruct?

  21. esmi
    Forum Moderator
    Posted 1 year ago #

    Go back to the original site, identify the caching plugin being used and deactivate it by following the instructions for that plugin. Then try moving the old site over to the new site.

  22. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    I cant do that as I am no longer with my previous website provider and the domain name and everything has already been transferred .

  23. esmi
    Forum Moderator
    Posted 1 year ago #

    Then I can only suggest that you try asking the plugin's developer for support via http://wordpress.org/support/plugin/wp-super-cache

  24. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    Any ideas on the kinds of things I could ask him?

    Would deleting the files work from the plugin folder?

  25. esmi
    Forum Moderator
    Posted 1 year ago #

    Would deleting the files work from the plugin folder?

    Unlikely. There may be files that you need to edit - such as your wp-config.php file and your WordPress .htaccess file. You need to explain that you have tried to move a cached site and hit problems for one reason or another. If necessary, link back to this topic.

  26. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    Could there be a way to reset the cache so it pushes to the new domain hosting provider?

  27. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    Is there a plugin prehaps that I could install that will push everything and / or re-set everything ? I have posted a question in the link you provided but from the look of other users never getting answers , I am not hopeful.

  28. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    I have several backups of my website that i backed up from my previous hosting provider via a wordpress plugin. Do you have any idea of what / how to go about restoring it from backup?

  29. Justtryingtomakealiving
    Member
    Posted 1 year ago #

    Bump...

    I uploaded the files from backup zip file and i am getting this error now (but added the new config.php file ) ??

    Warning: require_once(/home/danielem/public_html/wp-content/plugins/the-events-calendar/public/template-tags/general.php) [function.require-once]: failed to open stream: No such file or directory in /home/danielem/public_html/wp-content/plugins/the-events-calendar/lib/the-events-calendar.class.php on line 163

    Fatal error: require_once() [function.require]: Failed opening required '/home/danielem/public_html/wp-content/plugins/the-events-calendar/public/template-tags/general.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/danielem/public_html/wp-content/plugins/the-events-calendar/lib/the-events-calendar.class.php on line 163

  30. karban
    Member
    Posted 1 year ago #

    Hi justtryingtomakealiving,

    I've just moved a site with WPSC enabled & I also had problems because of the cache - I fixed my problem by uploading the 2 files normally found in wp-content folder;
    - advanced-cache.php
    - wp-cache-config.php

    These had been removed by the plugin when I deleted it (trying to fix the issue...) but they were not re-installed when I re-installed the plugin. I also had to remove the old URL address from one of the files (it appears that is what probably caused the issue after moving - seems it still retains some of the old information....). After I did that the site worked properly (and the site is a very complex one, with shopping cart, auto-tweeting, BPS security, etc etc).

    Also, looking at the code you posted, it looks like the issue is also with "the-events-calendar" plugin... try disabling that plugin as well & see if the problem still occurs.

    Hope this helped, regards Karen.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.