Jump to content
Sign in to follow this  
ehand

Unwanted characters after editing functions.php in Pagelines Customization plugin

Recommended Posts

ehand    0
ehand

I have Pagelines Customize installed and was trying to add a google font to functions.php in plugins>pagelines-customize. I followed instructions found here: http://www.pagelines.com/forum/discussion/14619/typography-using-additional-google-web-fonts/p1 Now my site is broken and displaying unwanted characters in the head of the site. I have reinstalled Wordpress without success and my next step was to re-intall the plugin but I can't figure out how to do that. Mostly I need to compare the original functions.php file with the one I have to make sure there are no syntax errors. I also had a plugin (WP Google Fonts) installed that I am worried may have created a conflict. I deactivated it, deleted and physically removed it from the plugin directory and returning it to the state that it was in when I first observed the unwanted characters. While I can read PHP and make adjustments to it and am generally able to stay away or correct syntax errors I don't know enough about this particular issue to resolve it. Any suggestions would be greatly appreciated.

Share this post


Link to post
Share on other sites
WebWerx    0
WebWerx
@ehand: My first question is why would you use a Google Fonts plugin when PL supports Google Fonts out of the box? You should be using the Base Theme. If that is already the case, you can replace the corrupt functions.php with an original - which you will get when unzip it to your desktop. If you somehow muddled up your functions.php, there should be no need to reinstall WordPress. You didn't happen to backup functions.php before you made the coding change did you? (You will next time!).

Share this post


Link to post
Share on other sites
ehand    0
ehand
@Webwerx Thank you for your input. I had a back up copy of my functions.php file but my app that was holding it in an untitled text froze and I lost that backup when I had to restart the app. I used the Google Fonts plugin because I did not have an entire list of available fonts and was looking for resources for that. Pagelines for what ever reason only gives a partial list. It seemed the natural thing to try and it didn't occur to me that it would break something that I wouldn't be able to fix by simply unistalling it. I am not using Base Theme I am using the Pagelines Customization plugin which can be edited directly just as Base Theme can be. One of the issues here is that the Pagelines Customization plugin doesn't seem to have a download page either at WordPress or at Pagelines. So I can't redownload and compare my files. Is there anyone else who has suggestions that might help me out in this situation?

Share this post


Link to post
Share on other sites
WebWerx    0
WebWerx
YA... install the Base theme, and activate it. Then copy any custom CSS you have applied in Pagelines, and paste it into the custom.css of the Base Theme. As soon as you activate the BAse Theme, your site should come back.

Share this post


Link to post
Share on other sites
ehand    0
ehand
Ok, I tried that. But when I clicked the activate button this is the code I get: [code]??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????/ Warning: Cannot modify header information - headers already sent by (output started at /home/roettger/public_html/wordpress/wp-content/plugins/pagelines-customize/functions.php:1) in /home/roettger/public_html/wordpress/wp-includes/pluggable.php on line 866[/code] I got this before and went to line 866 on pluggable.php to see if I could identity the issue. The chunk of code found there is for re direct function. [code]if ( !function_exists('wp_redirect') ) : /** * Redirects to another page. * * @since 1.5.1 * @uses apply_filters() Calls 'wp_redirect' hook on $location and $status. * * @param string $location The path to redirect to * @param int $status Status code to use * @return bool False if $location is not set */ function wp_redirect($location, $status = 302) { global $is_IIS; $location = apply_filters('wp_redirect', $location, $status); $status = apply_filters('wp_redirect_status', $status, $location); if ( !$location ) // allows the wp_redirect filter to cancel a redirect return false; $location = wp_sanitize_redirect($location); if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' ) status_header($status); // This causes problems on IIS and some FastCGI setups header("Location: $location", true, $status); } endif;[/code] Also, the unwanted characters are showing up on the administrative side of the site as well.

Share this post


Link to post
Share on other sites
WebWerx    0
WebWerx
Have you tried any other theme? Like TwentyTen?

Share this post


Link to post
Share on other sites
Rob    547
Rob
Gentlemen, the code you looked at in the forum (as stated in the original part of this topic) dated from PlatformPro and isn't applicable to PageLines Framework. The Google Fonts plugin is really most applicable here. Most of the fonts shown here: http://www.google.com/webfonts are included, but Google adds to the list often and we manually add them to the plugin. If you see a font you like, but it's not in our plugin, just drop us a note and we'll endeavor to add it to an update, as soon as those are ready.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ehand    0
ehand
@WebWerx That was a good suggestion and got exactly the same error code. @rangelone Are we talking about the the Typography Setting under Global Settings? From what I can see there are less than 30 font families from google there and there are over 500 font families on the on the link that you provided. Am I missing something? I'm aware that the documentation is from platform pro but the instructions in functions.php in the Pagelines customization plugin say that I can add chosen fonts there. Here is the functions.php in it's entirety, Can anyone see anything wrong with this page? [code] array( 'name' => 'Ubuntu', 'family' => '"Ubuntu", arial, serif', 'web_safe' => true, 'google' => true, 'monospace' => false ) ); return array_merge( $thefoundry, $myfont ); } /* // ==================================================== // = YOUR FUNCTIONS - Where you should add your code = // ==================================================== */[/code] Does anyone have any idea why this might be happening to the head of the site?

Share this post


Link to post
Share on other sites
WebWerx    0
WebWerx
@ehand: If you are saying that the error you outlined is persisting when you change the site theme to something like Twenty Ten, then your issue is with the Wordpress core not PL. Activating a different theme takes the functions.php you mention out of the equation. @rangelone: Do you agree?

Share this post


Link to post
Share on other sites
ehand    0
ehand
@WebWerk When I change the site to Twenty Ten the unwanted characters go away. When I change the site to either Pagelines Base or Pagelines I see the unwanted characters. But I was seeing them still on the administrative side of the site no matter what I did and I was also seeing the before mentioned error. However, what I figured if I logged out and back in with the Twenty Ten theme activated the unwanted characters went away on the administrative side as well. So now I know that it is definitely Pagelines. But it's showing up in both the Pagelines Base and the regular Pageline's theme. This leaves the Pagelines customization plugin (which is what I originally thought) as the possible culprit. From there I have deactivated the plug in and all is fine. However, I still need the CSS in that plug in and need to reinstall it. And yes, I have the CSS backed up. @rangelone This brings me back to my original questions and request. Where can I download the page lines customization plugin? Seems the only way to get this plugin is through the store on the administrative side of my site. If my site already has it installed then there is no way to redownload it.

Share this post


Link to post
Share on other sites
catrina    103
catrina
The PageLines Customize plugin is only available from the Store (there isn't a place where it can be downloaded for manual installation). It probably won't let you re-download because it's already installed, so if you have the CSS backed up already, you should be able to paste that CSS back in after you delete and re-install the plugin.

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
ehand    0
ehand
@catrina Thanks! That is exactly what I did. Now if I could just get BBEdit to stop loading the CSS page that is has cached and give me the one that is actually on the server! Thanks everyone for your help. This issue is resolved. I deleted Pagelines Customization plugin and the re-installed it. That fixed the problem which was somewhere in functions.php. But because I didn't have the original file I couldn't compare.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
Hi ehand, I have just read through this topic and I agree with Rangelone, we have a free plug-in available on the store called Google Fonts. Once this plug-in is installed and activated it adds over 400+ fonts to your Typography drop down menu. I have provided you with a link to the plug-ins store page, remember you can install this within your Wordpress installation. http://www.pagelines.com/store/plugins/pagelines-googlefonts/

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  

×