genealogydotie
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pods and WordPress 4.9?Yes, the social links load, but nothing below that if PODS is disabled.
The issue is the inability to edit from wp-admin. But I have done it now via the FTP link. The page was not displaying correctly on tablets and mobiles; the header was obscuring the first line. I am sure there are more elegant solutions, but I just added a blank row/box at the top of the page.
I am still following the other thread. As mentioned earlier I do not believe the issue of not being able to edit .php files from wp-admin was/is caused by the PODS plugin. I think that was someone jumping to conclusions.
But for now I am sorted. Thanks for looking into this.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pods and WordPress 4.9?Thanks again.
Got that sorted. Below is social.php
As expected in line 4 we see it calling for the pods plugin, which if you disable it, makes it stop working (all content in my website disappears bar the header). I don’t have a problem with that in itself. I don’t have/want to disable the plugin. The problem is with the inability to edit with the wp admin tool. (But now I have access via FTP that matters less). I have had a look at loop.php – it quite a complicated one so I need some time to figure out what exactly it does and how it works.
<span class=”sociallinks”>
<?php$genealogy_settings = pods(“genealogy_settings”);
$platforms = array(“twitter”,”facebook”, “youtube”,”youtu.be”,”vimeo”, “instagram”, “linkedin”,”pinterest”,”google”);
$params = array(“limit” => -1);$social_links= $genealogy_settings->display(“social_links”);
$class=””;
foreach(preg_split(“/((\r?\n)|(\r\n?))/”, $social_links) as $line){
$line = strip_tags($line);
if ($line!=””){
foreach ($platforms as $platform){if (strpos($line, $platform )>-1){
if ($platform==”youtu.be”){ $platform=”youtube”;}
$class = $platform;
}
}
echo “$class“;
}
}?>
</span>
<div style=”clear:both;”></div>Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pods and WordPress 4.9?Hi Jim
Thanks for your response. I would like to clarify I am not a developer. I am just trying to help out solving the issue. I also would like to make clear that I am not pointing any fingers, I am just following advice from others.
The website has a very customised theme, which makes trouble shooting a little challenging to say the least. Reading the “Your PHP code changes were rolled back due to an error on line 4 etc.” error, I am indeed pretty sure that there is a line in the social.php file that specifically calls your plugin.
You asked for the category.php:
<?php get_header(); ?>
<div class=”container”>
<div class=”col-sm-8 blog-main”>
<div=”class”>
</div><h1><?php printf( __( ‘Category Archives: %s’, ‘bootstrapcanvaswp’ ), ‘<span>’ . single_cat_title( ”, false ) . ‘</span>’ ); ?></h1>
<hr /><?php get_template_part( ‘loop’ ); ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Unfortunately I don’t have the tools the access the social.php file. But I hope to get that sorted over the weekend and will give you a copy of it once I have it.
But I think you might have answered my question already. If I am the only PODS user who has this issue, I am doubtful the plugin causes the issue.
Kind regards
Michael.
- This reply was modified 7 years, 3 months ago by genealogydotie.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pods and WordPress 4.9?Hi
You will have heard of the “Can’t edit main theme php files after upgrading to 4.9″ issue. One of the moderators (@clorith) on the relevant forum (title as per above) believes the PODS plugin is causing this issue in my case.
Part of thread:
On the genealogy.ie website, I appear to have an issue with a plugin called “Pods – Custom Content Types and Fields”If I deactivate it and try to make a change to the category.php them file I get the following error:
“Your PHP code changes were rolled back due to an error on line 4 of file wp-content/themes/genealogy/parts/social.php. Please fix and try saving again.
Call to undefined function pods()”
With only this plugin activated, I fall back to the error that is the topic of this thread.”
Reply:
“@genealogydotie PODS is the problem, you are getting an expected result form WordPress that an error was found (since some code elsewhere seems to rely on pods), but the loopback completed as expected when you disabled PODS ??”
Michael
- This reply was modified 7 years, 3 months ago by genealogydotie. Reason: Included thread info
Forum: Fixing WordPress
In reply to: Can’t edit main theme php files after upgrading to 4.9@backups Yes, I got that.
Forum: Fixing WordPress
In reply to: Can’t edit main theme php files after upgrading to 4.9Thanks @clorith
Forum: Fixing WordPress
In reply to: Can’t edit main theme php files after upgrading to 4.9With the Pods plugin disabled I immediately get the error – it looks to me it could be a line of code looking for the plugin – and wp does not proceed any further – so can not verify if this plugin is the cause or not.
@backups I am getting you into trouble?? Thanks for the offer but I actually enjoy the challenge of finding out solutions myself.
Forum: Fixing WordPress
In reply to: Can’t edit main theme php files after upgrading to 4.9Sorry for the delay in responding, I have a day job to go to.
On the genealogy.ie website, I appear to have an issue with a plugin called “Pods – Custom Content Types and Fields”
If I deactivate it and try to make a change to the category.php them file I get the following error:
“Your PHP code changes were rolled back due to an error on line 4 of file wp-content/themes/genealogy/parts/social.php. Please fix and try saving again.
Call to undefined function pods()”
With only this plugin activated, I fall back to the error that is the topic of this thread. I have no knowledge about this plugin or the .php file mentioned, they were there when I took the site over. I have a feeling though this is an unrelated issue.
Re: health check. Both values are set to off. This is the case for both my websites
- This reply was modified 7 years, 3 months ago by genealogydotie. Reason: Added info that values are same for both sites I have
Forum: Fixing WordPress
In reply to: Can’t edit main theme php files after upgrading to 4.9Have two websites. Both hosted with Blacknight. Updated both to 4.9
https://www.jillianvanturnhout.ie – no problems. This website is using standard 2011 theme. Although I did not update it to the latest version. And will not do so after I had problems in the past with updates (should not have touched those themes files:))
https://www.genealogy.ie – cannot update any .php files. This is using a custom theme. Have tried disabling all plugins on this one, to no avail.I am not a developer (I am an Economist actually) and do not have access to FTP. Most of what you are writing is gobbledygook to me, but I know a reasonable amount about changing and updating my two websites.
- This reply was modified 7 years, 3 months ago by genealogydotie. Reason: Added s to http for genealogy.ie