I've been using wordpress for a few years without issues. No changes in themes or plugins, and lately I lost the ability to see my wp-admin page fully (Only left sidebar shows, right framelayout is completely blank in every sidebar link I click). The website is still fully functioning and works and I'm able to log-in to the admin page (wp-login.php).
The ONLY pages I can see that loads up is Jetpack, Slideshows, and Feedbacks, Settings -> Portfolio SlideShows Pro/Sharing links.
I've tried:
renaming plugins to deactivate
renaming template (retromania) and uploading twentyeleven
reloaded 'backwpup' auto backup files even all the way back to 2013-7-13-53-23.
Checking functions.php page for empty blanks top and bottom
rewrite wp-config Akismet Key
Attempted to turn on 'WP-Debug', but have no idea where the log goes...
Here is what my error_log says from my /wp/ folder:
[27-Jun-2014 04:06:17 America/Denver] PHP Fatal error: require(): Failed opening required '/home2/wesleych/public_html/wp/wp-includes/load.php' (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home2/wesleych/public_html/wp/wp-settings.php on line 21
-- repeated 2 more times--
[27-Jul-2014 16:01:32 UTC] PHP Warning: strip_tags() expects parameter 1 to be string, array given in /home2/wesleych/public_html/wp/wp-includes/formatting.php on line 2911
-- repeated 9 more times --
[27-Jul-2014 16:02:26 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in /home2/wesleych/public_html/wp/wp-includes/pluggable.php on line 461
-- repeated 8 more times --
[20-Sep-2014 15:34:16 America/Denver] PHP Fatal error: Call to undefined function force_ssl_admin() in /home2/wesleych/public_html/wp/wp-login.php on line 15
[20-Sep-2014 21:47:57 UTC] PHP Notice: Undefined index: backwpup_int in /home2/wesleych/public_html/wp/wp-includes/cron.php on line 103
I've been scowering the web for some similar issues, seems like all places I looked only talks about completely blank wp-admin pages.
Any suggestions? =)
Related
I am working on a site that suddenly has these error messages:
[25-Aug-2022 16:23:38 UTC] PHP Notice: Undefined variable: post in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250
[25-Aug-2022 16:23:38 UTC] PHP Notice: Undefined property: Elementor\Core\Kits\Documents\Kit::$ in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250
[25-Aug-2022 16:23:38 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250
[25-Aug-2022 16:23:50 UTC] PHP Notice: Trying to get property 'ID' of non-object in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250
The errors showed up whenever a customer tried to put a variable product into the shopping cart. On the front end it says:
This doesn't happen if the customer adds a non-variable product to the cart, so I am not sure what is happening or how to repair this. I have reached out to elementor with no response at this point after 24 hours.
The code referenced in the error log is:
public function get_main_id() {
if ( ! $this->main_id ) {
$post_id = $this->post->ID;
$parent_post_id = wp_is_post_revision( $post_id );
if ( $parent_post_id ) {
$post_id = $parent_post_id;
}
$this->main_id = $post_id;
}
return $this->main_id;
}
This occurred after the site was moved to a new hosting company, however, the site was working fine for the past three weeks, and the issue wasn't present.
I was able to figure out (With the help of Elementor Tier 2 support) that the hosting provider (Site Grounds) installs a plugin called "SiteGround Optimizer" that was causing this issue. There is a conflict between this plugin and Elementor in case anyone is having this issue.
EDITED: SiteGround was able to turn off the "Defer Render-blocking JavaScript" feature and the plugin worked with the rest of the site. If you are having a strange issue and you are on SiteGround, I highly recommend you turn this feature off to troubleshoot the issue better.
This is occurring on Kinsta too - so it's not just the SG plugin. It could still be optimization related - but I can't seem to find a resolution yet (even rolling back versions isn't helping me).
that issue comes in new version of elementor, just rollback it previous version following this video https://youtu.be/3uwCRcQvIFw
I'm currently running with PHP 5.3.4. I found that this should be compatible here https://joomla.stackexchange.com/questions/786/what-is-the-maximum-version-of-php-that-joomla-1-5-will-run
However I did have some PHP issues that I resolved with this link: Joomla menu not showing
After doing this I was able to see the menu items show up correctly for my site. However in the Menu Item Manager inside the Joomla admin the errors listed below are thrown when debugged. Menu items will not display at all and the list is blank. What is causing these errors to be thrown and not display my menu items in the Joomla Admin yet display on the website perfectly?
Warning: Parameter 4 to JHTMLMenu::treerecurse() expected to be a reference, value given in D:\Inetpub\wwwroot\libraries\joomla\html\html.php on line 87
Warning: array_slice() expects parameter 1 to be array, null given in D:\Inetpub\wwwroot\administrator\components\com_menus\models\list.php on line 143
Warning: Invalid argument supplied for foreach() in D:\Inetpub\wwwroot\administrator\components\com_menus\models\list.php on line 147 Notice: Only variable references should be returned by reference in D:\Inetpub\wwwroot\administrator\components\com_menus\views\list\view.php on line 198
Warning: Invalid argument supplied for foreach() in D:\Inetpub\wwwroot\administrator\components\com_menus\views\list\view.php on line 66
Sorry, what Joomla 1.5 version do you have?
Remember that only the 1.15.16+ are PHP 5.3 compatible
Look this Post Joomla 1.5 and PHP 5.3 with the same error on line:
libraries\joomla\html\html.php on line 87
I think that you can try to replace the files with error with PhilETaylor version https://github.com/PhilETaylor/Joomla1.5.999
good Luck!
Credit to Ciro, by replacing the following files in my case resolved my issue. There was not a need to replace all Joomla files.
helper.php - found here modules\mod_mainmenu
html.php - found here libraries\joomla\html
view.php - found here administrator\components\com_menus\views\list
Not sure when this occurred but when editing a category, this error is given at the top of the edit category page.
Warning: call_user_func_array() expects parameter 1 to be a valid
callback, function 'my_category_custom_fields' not found or invalid
function name in /home2/sirenon2/public_html/wp-includes/plugin.php on
line 525
Line 525 is call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
When I submit on the edit category page, it gives me the original error plus:
Warning: Cannot modify header information - headers already sent by
(output started at
/home2/sirenon2/public_html/wp-includes/plugin.php:525) in
/home2/sirenon2/public_html/wp-includes/pluggable.php on line 1228
Line 1228 is header("Location: $location", true, $status);.
Any ideas on what the problem is and how to fix it? I do have custom fields on my edit category pages.
Thanks
Either one of installed plugins has error which is throwing above error or you need to update wordpress or PHP. There may be compatibility issue of WordPress with installed PHP version. Few of WordPress's functions might have been updated.
If updating doesn't works, simply go to wp-config.php file and set this constant to false. If this line is not there into config file, add it.
define('WP_DEBUG', false);
I also have this problem before. But I change output_buffering to On. You can find it from PHP.ini.
Or refer this url http://chevronscode.com/index.php/wordpress-header-error-wp-includespluggable-php.html
hoping somebody can help,
having an issue with a news posting section on a Joomla site: http://buffalowingsandrings.com/#/in-the-news - You'll see if you scroll down, that there are lots of empty fields. We only want to display 10 news stories and we are unsure why these blank ones are appearing.
I didn't build the site, I just have access and have to fix for a client.
After turning on the error reporting we see the following errors:
Notice: Undefined property: stdClass::$created in
/home/content/16/11371716/html/templates/bwr_pages/html/com_content/category/blog_item.php
on line 3 11 September 2014
Notice: Undefined property: stdClass::$readmore_link in
/home/content/16/11371716/html/templates/bwr_pages/html/com_content/category/blog_item.php
on line 6
Notice: Undefined property: stdClass::$title in
/home/content/16/11371716/html/templates/bwr_pages/html/com_content/category/blog_item.php
on line 9
Notice: Trying to get property of non-object in
/home/content/16/11371716/html/components/com_content/views/category/view.html.php
on line 217
Notice: Undefined property: stdClass::$attribs in
/home/content/16/11371716/html/components/com_content/views/category/view.html.php
on line 225
Notice: Undefined property: stdClass::$id in
/home/content/16/11371716/html/plugins/content/vote.php on line 23
Any help would be greatly appreciated!
I may guess that those empty block's might come from inefficient code for the view of this menu item for the extra content settings like intro items or link items.
You can try this:
Go in the menu manager, locate the menu item for this blog page ( in-the-news ) and check its parameters basic section (on the right) for how many articles are set to be displayed.
How many leading and intro articles, how many links...
Maybe you would like to set links to 0 and also experiment with the leading / intro articles count number and see how this affecting the front-end.
Please note also that changes may not appear right after your changes, so clear joomla's and browser cache when checking in the front-end.
I am on Magento ver. 1.7.0.0 and I can't edit some of the products from the admin backend.
When I tried to change the product description directly using mysql it worked, so then I tried removing parts of the description and then found that
everything till the text 'printer driver lets users transfer data' works but when I added the word 'from' to it ,it didn't work making the paragraph end in 'printer driver lets users transfer data from' did nothing ,neither showed a error nor a successful message it just refreshed the page. It can't be about the length because if I replace the text from to krom it works.
So I tried editing the description to just 'printer driver lets users transfer data from' it worked
From the system.log:
ERR (3): Warning: array_key_exists() expects parameter 2 to be array, null given in //app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php on line 507
ERR (3): Recoverable >>ERRor: Argument 1 passed to Varien_Object::addData() must be an array, null given, called in //app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php on line 514 and defined in //lib/Varien/Object.php on line 243
ERR (3): Warning: Invalid argument supplied for foreach() in //lib/Varien/Object.php on line 245
The Chrome console tells me :
index.php/admin/catalog_product/validate/id/1/back/edi…roduct_info_tabs_group_7/key/978d8fe4570a41312a7520945e982662/?isAjax=true 500 (Internal Server Error) prototype.js:1530
Ajax.Request.Class.create.request prototype.js:1530
Ajax.Request.addMethods.initialize loader.js:61
(anonymous function) prototype.js:429
klass prototype.js:101
varienForm._validate form.js:80
varienForm.submit form.js:65
saveAndContinueEdit /index.php/admin/catalog_product/edit/id/1/back/edit/tab/product_info_tabs_group_7/key/a325cea2187bfa32cec5c6d0c14e0baa/:2240
onclick
A little PHP debugging tells me that for the product with description error
$product->getAttributes(); was empty but for the working products it was an array.
$attributes = $product->getAttributes();
around line 504 of app\code\core\Mage\Adminhtml\controllers\Catalog\ProductController.php
If I change the following part from the form.js there is no Chrome console error but it still doesn't work:
this.submitUrl = url;
if(this.validator && this.validator.validate()){
if(this.validationUrl){
this._validate();
}
else{
this._submit(); // I removed everything but this
}
return true;
}
If it helps there are 5881 characters before the word 'from' in the description.
I have tried editing in all major browser so there are no compatibility issues.
I believe the problem is somewhere in the javascript but can't find where. Even if I can just remove the validation script from the admin forms I will but I don't think I should and I don't know how.
Any help would be greatly appreciated.
Thanks for your time.
Take a closer look at your .htaccess file. When I migrated my 1.7.0 Magento store to another server I included the .htaccess file from the old server and then the message: "Invalid Form Key. Please refresh the page" popped on screen and nothing happened, not even the configuration changes had effect.
The solution was to install a fresh Magento and then copy the My Store files the the Magento root, excluding .htaccess. When I used the .htaccess from the fresh installation, everything started to work fine. I don't know what exactly happened, maybe each server structure has different and particular .htaccess entries and rules. It works to me.