Fixed Header issues
-
Hello.
I am having problems getting the fixed header to work. The latest versions of Tablepress and Fixed Header Plugin have be installed / activated. Can you advise me on this?
This is the shortcode I have pasted to the page:
[table id=1 datatables_fixedheader=top datatables_fixedheader_offsettop=100 /]This is the page:
https://aboutbibbs.com/test-table/I really would appreciate your time on this.
Charles
-
Actually… im getting this message now. So I guess this is the first issue I need fixed.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 417 bytes) in /home/aboutbibbs/public_html/wp-content/plugins/tablepress/models/model-table.php on line 278
I created another page to replicate the first issue I posted. (fixed header not working)
https://aboutbibbs.com/test-table-2/
Again, thank you for your time.
Hi,
thanks for your question, and sorry for the trouble.
To fix that, please try increasing that PHP memory limit on the server, by increasing the value of the
WP_MEMORY_LIMIT
constant in the wp-config.php file, e.g. to512M
, via the instructions from https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHPFor the Fixed Header issue, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:
.tablepress.fixedHeader-floating, .tablepress.fixedHeader-locked { z-index: 1000; }
Regards,
TobiasHey TobiasBg, thank you for responding. And, thank you for that css fix.
? Im still having issues with the memory. (https://aboutbibbs.com/test-table/)
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 417 bytes) in /home/aboutbibbs/public_html/wp-content/plugins/tablepress/models/model-table.php on line 278
? I have forwarded your suggestions to my web host. They made the corrections and have been trying to trouble shoot the issue….. no success.
? This is what they got back in the error log:
PHP 5.3.29
[Tue Jun 14 14:43:19 2016] [error] [client 69.36.160.253] Cannot load the ionCube PHP Loader – it was built with configuration 2.2.0, whereas running engine is API220090626,NTS
[Tue Jun 14 14:43:19 2016] [error] [client 69.36.160.253] Zend Optimizer requires Zend Engine API version 220060519.
[Tue Jun 14 14:43:19 2016] [error] [client 69.36.160.253] The Zend Engine API version 220090626 which is installed, is newer.
[Tue Jun 14 14:43:19 2016] [error] [client 69.36.160.253] Contact Zend Technologies at https://www.zend.com/ for a later version of Zend Optimizer.? Any advice on this? I desperately need this function in my website.
Thanks again.
CharlesHi Charles,
can they maybe update to a newer version of PHP? PHP 5.3.29 is very old and the recent version (5.6 or even 7.0) are much faster and require less memory.
Can you maybe try further increasing the limit, e.g. to
1024M
?Regards,
TobiasHello TobiasBg.
I have made your recommended changes.
server now running:
CentOS 6.8 with MySQL 5.6.30
Apache 2.4 and PHP 5.6.22
WP Memory Limit: 1GBut still no success. Can you take another look to see if you can trouble shoot this?
Thank you.
Charles.Hi Charles,
ok, that should be better. Can you now please set the
WP_DEBUG
constant totrue
again (in the wp-config.php) so that we get an error message again?Also, how big is this table (rows and columns)?
Regards,
TobiasHello TobiasBg.
Ok, I have turned on the WP_DEBUG
This message came up:
Notice: The called constructor method for WP_Widget in GFW_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home/aboutbibbs/public_html/wp-includes/functions.php on line 3718In regards to the size of the table rows and columns … there are 8 columns. At the moment, there are only 100 rows, however the completed table will have at least 750 rows. Is that going to be a problem for this plugin?
If you anticipate the size of this table being a issue, then there is no reason to waste your time with this, and I will try to find another solution. If not, I really appreciate you helping me with this TobiasBg.
Thanks again
Charles
Hi Charles,
so are you are no longer getting memory errors when going to https://aboutbibbs.com/test-table/ with
WP_DEBUG
being on? Only that constructor being deprecated notice?That would be strange, as that shouldn’t trigger the server from generating the full page content.
A table of that size should not be a problem. It might be slow on the table’s “Edit” screen, but it should display fine on the frontend.
Regards,
TobiasTobiasBg, my understanding of backend code is very limited. I’m a front end / designer.
I’m not sure how to answer those questions. All I know is that message came up when i went to that page.
https://aboutbibbs.com/test-table/
Do you think you can fix the issue?
Thanks again,
CharlesIn not sure if this is related.. but I’m getting this message when I go to my home page on the website ( additional warning about header info):
Notice: The called constructor method for WP_Widget in GFW_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home/aboutbibbs/public_html/wp-includes/functions.php on line 3718
Warning: Cannot modify header information – headers already sent by (output started at /home/aboutbibbs/public_html/wp-includes/functions.php:3718) in /home/aboutbibbs/public_html/wp-includes/pluggable.php on line 1171
TobiasBg, I’m going to have to turn the debug off again so I can work alittle bit on the website…. however, when Im finished I will turn it back on.
Please let me know if you need any login information that will help you in solving this issue. That particular page is very important to this site. I need to find a solution as soon as possible. I would be willing to pay for you for your services if this will expedite the fix.
Thanks again.
Charles.Hi Charles,
Yes, if possible, I’d like to take a direct look at this on your site. Could you therefore please get in touch via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!
Regards,
TobiasHi Charles,
thanks for your email! I was able to fix this now, and https://aboutbibbs.com/test-table/ should be working fine.
The cause for this was very simple: You had copied the text from your initial post of this thread into the table, multiple times.
This text again contains the Shortcode, i.e. a reference to the same table. When that is then executed, it basically ran an infinite loop (the Shortcode tries to execute itself tries to execute itself tries to execute itself …). Eventually, the server ran out of resources so that the request was stopped, resulting in the blank page.I removed this content from the table now, so that it should display fine again ??
Regards,
TobiasTHANK YOU so much TobiasBg!
I really appreciate you figuring that out for me. I wish other plugin authors were like you.
Peace and blessings to you.
Charles.
Hi,
no problem, you are very welcome! ?? Good to hear that this helped!
Best wishes,
TobiasP.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
- The topic ‘Fixed Header issues’ is closed to new replies.