Edit To Action.php Or Custom Include Resulted In 500 Error

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Edit To Action.php Or Custom Include Resulted In 500 Error

Postby fineleric » 25 Apr 2018, 20:48

Hi,
The reason for this was it seems to be impacting the way the responsive layout displays. Once removed, the sizing on the screen looked good, however I didn't want to remove the footer completely. So, having saved the original version of this file I then copied it back into action.php and saved. Seemed to be no problem. Next, I tried to add a line to the custom include file to remove the footer at a certain size of screen. This is the line of code: #cred {display:none}

Here's the full code I added.

@media screen and (max-width: 640px) {
.blogtitle {display:none;}
.description {display:none}
#header-container{background-image: none !important;}
#cred {display:none}
}
h1.posttitle{color:#528F6C}
.blogtitle a {margin-left:200px}
.description{margin-left:210px;color: #727272;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 12px;
font-weight: normal;
}
}
#header-widgets {margin-right:20px;margin-top:40px;}
div.suf-widget{border:none}
.textwidget{
text-align:center;
color: #727272;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 12px;
font-weight: normal;
margin-right:5px;margin-left:5px;margin-top:15px;margin-bottom:15px;
}
#wrapper {border:none}
#page-footer {border-top:none}
#cred{
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 11px;
font-weight: normal;}

Once I saved and refreshed the page, I got a 500 error. I immediately went back and removed the line in the file and re-saved. Still, a 500 error. I can't really understand why this might have occured seeing as I've put the code back to normal, but it was straight after the changes so can't see what else it would be. No problems accessing the /admin page.
fineleric
 
Posts: 1
Joined: 25 Apr 2018, 20:47

Re: Edit To Action.php Or Custom Include Resulted In 500 Err

Postby Colin » 27 Apr 2018, 00:06

A 500 error is not a very helpful error message in that it means something has gone wrong on the server but exactly what it doesn't know.

If all else fails try switching to a standard theme delete Suffusion and then re-install and re-enable.

Let us know how you get on
Colin
 
Posts: 5016
Joined: 27 Oct 2009, 10:46

Re: Edit To Action.php Or Custom Include Resulted In 500 Err

Postby mbrsolution » 29 Apr 2018, 17:16

Hi @fineleric, I think you have an extra brace } in your code. Please check and report back.

font-weight: normal;
}
} <---- this brace looks to be the extra one


Kind regards
Manuel Ballesta Ruiz
http://mbrsolution.com
mbrsolution
 
Posts: 78
Joined: 01 Jan 2012, 15:58
Location: Australia

Re: Edit To Action.php Or Custom Include Resulted In 500 Err

Postby drake » 03 May 2018, 16:07

Is not the brightest idea to edit the files of theme. Be very cautious with actions.php which is the core of theme and is not a pluggable file (you cannot edit it in a child theme). In Suffusion you don't need to touch the files for getting the results you need. Or you have pluggable files which can be edited safely in a child theme.

Anyway, all your lines are CSS code, not php... their place aren't in actions.php.

Instead of editing files, add your CSS at Suffusion Options -> Backend -> Custom Includes -> Custom Styles... Your lines added there will overwrite the original styles, letting you to obtain what you want, without breaking anything else. (Of course, correct the code as Manuel spotted)
drake
 
Posts: 6219
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania


Return to Support Requests

Who is online

Users browsing this forum: No registered users and 16 guests

cron