In wordpress admin panel, under Appearance - Menus item was working properly. Suddenly this menu item stopped working. I am getting the below error in admin panel
Fatal error: Maximum execution time of 60 seconds exceeded in /public_html/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-filter.class.php on line 248
Warning: Invalid argument supplied for foreach() in /public_html/wp-includes/class-wp-hook.php on line 277
Warning: Invalid argument supplied for foreach() in /public_html/wp-includes/class-wp-hook.php on line 277
Warning: Invalid argument supplied for foreach() in /public_html/wp-includes/class-wp-hook.php on line 277
Can anyone please help to fix this issue?
That seems to be a WPML problem.
Set the max_execution_time to 300 (which is 5 minutes) to see if it works.
You can set it in your .htaccess file with php_value max_execution_time 300.
Or you could do it with PHP: ini_set('max_execution_time', 300);
ini_set('max_execution_time', 300);
Place this at the top of your PHP script and let your script loose!
this link
and set .htaccess file : php_value max_execution_time 300
Related
My website was built with wordpress and now I get the following error:
PHP message: PHP Warning: ob_start(): function '‘ob_gzhandler’' not
found or invalid function name in /var/www/html/wordpress/index.php on
line 15
And this is index.php:
enter image description here
Any idea to fix it?
Try setting the Content-Encoding header.
header('Content-Encoding: gzip');
Warning: Cannot modify header information - headers already sent by (output started at /home/tomproje/site/sgaotw.com/wp-config.php:1) in /home/tomproje/site/sgaotw.com/wp-admin/includes/misc.php on line 1115
what is the problem online 1115 ? I try to solve this problem , i read every topic about this problem , but not found an answer .
line 1115
It sounds like there could be some blank space in a PHP file somewhere. Try checking your wp-config.php file and seeing if there's a character before the opening <?php tag.
Trying to import Divi layouts (.json files)
Getting this error:
This file cannot be imported. It may be caused by file_uploads being
disabled in your php.ini. It may also be caused by post_max_size or/and
upload_max_filesize being smaller than file selected. Please increase
it or transfer more substantial data at the time.
This is not the case, however as I don't have a limit on either and I can upload anywhere else within my WP installation.
Does anyone have any idea what else would cause this error?
My response pertains to Divi Theme Version 3.0.46
I had the same problem, and what follows is how I fixed it.
In my case the error is being generated from the Divi Builder portability.js file, line 464:
var fileSize = Math.ceil( ( data.file.size / ( 1024 * 1024 ) ).toFixed( 2 ) ),
formData = new FormData();
// Max size set on server is exceeded.
if ( fileSize >= $this.postMaxSize || fileSize >= $this.uploadMaxSize ) {
etCore.modalContent( '<p>' + $this.text.maxSizeExceeded + '</p>', false, true, '#' + $this.instance( '.ui-tabs-panel:visible' ).attr( 'id' )\
);
$this.enableActions();
return;
}
The thing to note here is, this script is rounding the max upload sizes to whole numbers of MB.
So my max file size for this site was 2MB, and my file is 1,495,679 bytes, which the script turned into:
if 2>=2 {
// throw an error
}
So it seems, the solution is to make both your php upload max size and max post size at least 1MB greater than the file you are trying to upload.
The Elegant Themes people have a lengthy post on this:
https://www.elegantthemes.com/blog/tips-tricks/is-the-wordpress-upload-limit-giving-you-trouble-heres-how-to-change-it
This is as simple as setting this in my php.ini.
; TO have a 31.4MB file upload into Divi, these must be at least 32MB.
post_max_size = 32M
upload_max_filesize = 32M
The final thing I want to say about this as since this error is generated by javascript in the browser, you must:
change your php.ini
restart your webserver [at least I needed to w/ Apache]
refresh the page, as the limits are cached in the browser, not the result of any sort of ajax call, etc.
I had the same issue.I googled and found the solution below.(Apology for not having a proper explanation!)
Solution:
Create a new file php.ini with the following text & save in website's root directory and it's done.
file_uploads = On
upload_max_filesize = 100M
post_max_size = 100M
When I try to modify an account via cPanel WHM ,I got below error.
~~~
[2015-07-30 10:49:36 -0400] die [Internal Death while parsing [stdin] 11431] DBD::SQLite::st execute failed: database disk image is malformed at /usr/local/cpanel/Whostmgr/Bandwidth.pm line 56.
Whostmgr::Bandwidth::catch {...} (Cpanel::Exception::Database::Error=HASH(0x72432a0)) called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 104
Try::Tiny::try(CODE(0x7238338), Try::Tiny::Catch=REF(0x4918f48)) called at /usr/local/cpanel/Whostmgr/Bandwidth.pm line 58
Whostmgr::Bandwidth::getmonthbwusage("username", "advicetr") called at whostmgr/bin/whostmgr.pl line 4366
main::edituser() called at whostmgr/bin/whostmgr.pl line 598
DBD::SQLite::st execute failed: database disk image is malformed
at /usr/local/cpanel/Cpanel/Exception.pm line 151.
Cpanel::Exception::new("Cpanel::Exception::Database::Error", Cpanel::ExceptionMessage::Raw=SCALAR(0x49ea7e0), HASH(0x7242d48)) called at /usr/local/cpanel/Cpanel/Exception.pm line 57
Cpanel::Exception::create("Database::Error", Cpanel::ExceptionMessage::Raw=SCALAR(0x49ea7e0), HASH(0x7242d48)) called at /usr/local/cpanel/Cpanel/Exception.pm line 72
Cpanel::Exception::create_raw("Database::Error", "DBD::SQLite::st execute failed: database disk image is malformed", HASH(0x7242d48)) called at /usr/local/cpanel/Cpanel/DBI.pm line 105
Cpanel::DBI::_create_exception(Cpanel::DBI::SQLite::st=HASH(0x72387a0), "DBD::SQLite::st execute failed: database disk image is malformed", undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 93
Cpanel::DBI::_error_handler("DBD::SQLite::st execute failed: database disk image is malformed", Cpanel::DBI::SQLite::st=HASH(0x72387a0), undef) called at /usr/local/cpanel/Cpanel/BandwidthDB/RootCache.pm line 390
Can any know this issue.
Can you please try to update your cPanel/WHM with the following command.
/scripts/upcp –force
Since the error message involved bandwidth, I moved the /root/.bwusage.sqlite file out of the way and ran /usr/local/cpanel/scripts/build_bandwidthdb_root_cache_in_background
This generated a new .bwusage.sqlite file which should solve this issue.
Fixed !!!
Recently I set my site on my server(http://abc.hostname.com/sitename/) and I get following error:
It seems like the memory_limit on the server is too low for the fade on load feature.
I add the following code in wp-config.php to solve this error:
define( 'WP_MEMORY_LIMIT', '96M' ); also
ini_set("memory_limit","60M");
But the error is still there.
To increase memory limit .All you have to do is find line number 36 or 37 in wp-config file and add the following code there.
define('WP_MEMORY_LIMIT', '96M');
The problem will be solved.I think you are placing above code on somewhere else in wp-config file.Please add above code on line 36 or 37 only.