[wp-testers] Segmentation Fault update
Will Garcia
w at will.ph
Tue Jan 20 14:32:18 GMT 2009
Edit the file dashboard.php found in wp-admin/includes folder. Look for the
line that says
<--snip-->
// Secondary Feed (Planet) Widget
if ( !isset( $widget_options['dashboard_secondary'] ) ) {
$update = true;
$widget_options['dashboard_secondary'] = array(
'link' => apply_filters( 'dashboard_secondary_link', __( '
http://planet.wordpress.org/' ) ),
'url' => apply_filters( 'dashboard_secondary_feed', __( '
http://planet.wordpress.org/feed/' ) ),
'title' => apply_filters( 'dashboard_secondary_title', __(
'Other WordPress News' ) ),
'items' => 5
);
}
wp_add_dashboard_widget( 'dashboard_secondary',
$widget_options['dashboard_secondary']['title'], 'wp_dashboard_secondary',
'wp_dashboard_secondary_control' );
<--snip-->
That's the code calling the feed. I think. If it was me, I'd comment this
section. Corrections, anyone?
You're on your own on this one. Just make sure you have a backup of
dashboard.php just in case you bork this experiment.
Also, just a reminder, it's not one of the best practices to hack the core.
It's better left to the devs to sort things out. And knowing they're busy
enough as it is with 2.8 development, it may take a while before they can
get back to you. And as a disclaimer, I'm relatively a noob when it comes to
PHP or WordPress core programming, so if you are feeling a bit adventurous,
go ahead and give it a try. Just don't say you weren't warned.
Happy hunting!
On Tue, Jan 20, 2009 at 10:16 PM, Adrian Hayter <adrianhayter at gmail.com>wrote:
> "If it doesn't, then I think you would have to hack the core to exclude
> Other News. "
>
> Yeah, this is what I originally wanted help with when I started this
> thread. Can you give me some pointers as to where the Other News sections
> are located in the code? I've obviously tried taking them out via the screen
> options but to no avail.
>
>
> On 20/01/09 13:31, Will Garcia wrote:
>
>> Just wondering if disabling those modules suspected of causing segfaults
>> in
>> the screen options of the dashboard would help. If it doesn't, then I
>> think
>> you would have to hack the core to exclude Other News.
>>
>> On Mon, Jan 19, 2009 at 7:10 AM, Adrian Hayter<adrianhayter at gmail.com
>> >wrote:
>>
>>
>>
>>> I'm fully aware of that, so I was wondering if WordPress was calling on
>>> an
>>> extension when the dashboard is loaded (specifically the RSS loading of
>>> "Other News"). I guess I'll have to reinstall php if everything else
>>> fails.
>>>
>>>
>>> On 18/01/09 22:58, Jacob Santos wrote:
>>>
>>>
>>>
>>>> Yeah, you know. PHP code doesn't cause segfaults, PHP extensions do,
>>>> which
>>>> php code uses.
>>>>
>>>> Jacob Santos
>>>>
>>>>
>>>> Adrian Hayter wrote:
>>>>
>>>>
>>>>
>>>>> The memory is working fine, and the seg faults are far from
>>>>> "unexplainable". They only happen on the server when trying to load the
>>>>> dashboard, all other websites on the server are running fine. :S
>>>>>
>>>>> On 18/01/09 22:05, Christian Magnus Skoglund wrote:
>>>>>
>>>>>
>>>>>
>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>>> Hash: SHA1
>>>>>>
>>>>>> bad memory often causes unexplainable seg faults. Try to run memtest86
>>>>>> in slow mode. Check also the harddrive for problems with smart.
>>>>>>
>>>>>> Adrian Hayter wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> I've spoken about this before and I've tried different methods to
>>>>>>> solve
>>>>>>> it. The problem is that apache/php segfaults when I try to access my
>>>>>>> wp-admin/index.php. I believe the problem lies in the dashboard
>>>>>>> trying
>>>>>>> to fetch "Other News" or "Development Updates", because one time I
>>>>>>> had
>>>>>>> my error.log open (and reloading every second) and I loaded the page.
>>>>>>> Whilst the page loaded, the error log reported multiple segfaults,
>>>>>>> and
>>>>>>> I
>>>>>>> saw that the "Other News" section was trying to update itself.
>>>>>>>
>>>>>>> How do I remove these sections from being loaded, specifically
>>>>>>> without
>>>>>>> having to access the dashboard?
>>>>>>>
>>>>>>> -Adrian
>>>>>>> _______________________________________________
>>>>>>> wp-testers mailing list
>>>>>>> wp-testers at lists.automattic.com
>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> -----BEGIN PGP SIGNATURE-----
>>>>>> Version: GnuPG v1.4.9 (GNU/Linux)
>>>>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>>>>>
>>>>>> iEYEARECAAYFAklzp5wACgkQ8cpM8mUweOgx5ACfdXSYI54wWMvIM02HHVAQnTfu
>>>>>> erUAoMR16qXJYfe1fBTsl1AdN++pNtfh
>>>>>> =CfK2
>>>>>> -----END PGP SIGNATURE-----
>>>>>> _______________________________________________
>>>>>> wp-testers mailing list
>>>>>> wp-testers at lists.automattic.com
>>>>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>>>>
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> wp-testers mailing list
>>>>> wp-testers at lists.automattic.com
>>>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>>>
>>>>>
>>>>>
>>>> _______________________________________________
>>>> wp-testers mailing list
>>>> wp-testers at lists.automattic.com
>>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> wp-testers mailing list
>>> wp-testers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>
>>>
>>>
>>
>>
>>
>>
>>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
--
Will Garcia
http://will.ph/
More information about the wp-testers
mailing list