Jump to content
Sign in to follow this  
gavclarke

Syntax Error Has Crashed My Site

Recommended Posts

gavclarke    0
gavclarke

On adding to the 'pagelines-customize/functions.php' page I have somehow caused my site to crash and it won't let me access anything but the 'pagelines-customize/functions.php' page via the browser back button and no change i make, even my deleting all my additions and returning it to its original state makes any difference. The error message is:

Parse error: syntax error, unexpected $end in /home/content/70/10021170/html/wp-content/plugins/pagelines-customize/functions.php on line 61

Very worrying that I can't get into any of the site now. Site is here: www.irishlitsoc.org

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

Not sure what you have added to your functions.php file but to resolve this issue, you're going to need to connect to your site via FTP. Once connected, navigate to:

/wp-content/plugins/pagelines-customize/

Then open the functions.php file and remove any custom code you added, save the file and allow to upload the changes. Then refresh your site and the issues should be resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
gavclarke    0
gavclarke

Phew, thanks - yes had to take out a little custom code that obviously didn't work. All fixed now.

Steep learning curve here, thanks for a clear and helpful response.

Gav

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

The topic was marked as resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • reklov79
      By reklov79+
      Hi,
      Meganav seems to have a bug if you upload a Logo with a higher resolution (which actually is useful as it looks then sharper on mobile phones). But on mobile the Logo is then larger than on a desktop. Problem is the following code in the meganav style.css. Simply the "height: auto !important" needs to be removed.
      @media (max-width: 480px) { style.css?ver=5.0.14:133 body .meganav-logo img{ height: auto !important; } } But how to achieve that? What is the standard method for customizing that? Overriding via CSS / LESS doesn't work - in this case especially because of the !important derictive used in the original CSS I believe.
      Changing the original CSS is something I don't want to do as it leads into issues when upgrading.
      Btw: I seem not to be the only one with that issue - anyhow, the solution here (not displaying the Logo on mobile) is not acceptable for me.
      Thanks,
      Volker
       
    • casseysdesigns
      By casseysdesigns+
      In the past I would use nextbox for this task. However, Platform 5 does not have nextbox. I will do my best to describe what I am trying to do.
      I am creating a template for coaches, each product has its own link but they all share a common coach id. I want to set up the templates with the links for each product with a variable for the coach id so that I can change the coach id for all the links on the site by just changing the value of the variable $coachId. To do this I'll need to do something like the following...
      <a href="salesite.com/productcodes/referringRepId=<?= $coachId ?>" target="_blank">Product Purchase Link</a> Is it possible to do this with Platform 5?
    • janpeeters
      By janpeeters+
      I read a lot lately about how much faster PHP 7 is than older versions. Is PL5 compatible with 7?
      Does anyone have experience with running their whole PL5 site on PHP 7? Would love to hear your experiences.
      Thanks, Jan
    • dymond
      By dymond+
      I've been trying to upload a video to use as a video background, but the size was 12m, and the alotted max file size is 8m. I downloaded a couple of pugins that increase the size by creating php.ini files and all of that jazz, but to no avail. It would say (Max file size = 250mb) but after I uploaded I would get an "HTTP ERROR",
      Soooo I logged into my cpanel and saw that the php I was using was 4 version out of date. I upgraded my php to PHP 5.6 and now I get
      Fatal error: Out of memory (allocated 39583744) (tried to allocate 15 bytes) in /homepages/39/d200014696/htdocs/dymondentertainment.com/wp-content/themes/dms/dms/includes/less.plugin.php on line 848
      When I activiate another theme that is not pagleines, the site works fine.... but will no longer work with Pagelines DMS Version 2.2
       
      My site has no gone dark. What can I do?
    • mno
      By mno+
      In DMS we used to have the section "PLNextBox"that was pretty handy for adding php code in different parts of the page. I used it a lot in global sections like the footer and header to detect what is the current language of the site and based on that output the right string.
      Is the embed section going to support php in the future? are you bringing PLNextBox to PL5? is there another way to work with multiple languages for the global footer and header sections?
       
×