WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Post List
[resolved] Maximum execution time after update (38 posts)

  1. thebeggs4
    Member
    Posted 2 years ago #

    Love this plugin but I'm encountering some difficulties after updating to 0.3.b2. When I try to access the settings, I'm receiving a "Maximum execution time" error. 0.2.0 worked fine and continues to work after downgrading.

    Any ideas?

    http://wordpress.org/extend/plugins/advanced-post-list/

  2. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    Glad you love the plugin. Sorry about the issue though. I hope you backed up your presets prior to upgrading though.

    It could be a number of reasons why your getting that error. The most likely reason is that your getting hung up on something (a loop). It may be a script error, or a script getting an error from some backend code, or maybe something in constructing the settings page. Its hard to tell on my end, but you said this problem only exists on the plugin's setting page, right?

    Here's a couple other questions...
    Have you tried disabling other plugins to see if the plugin would work?
    Have you tried selecting "Yes" on "Delete preset upon deactivation" and then deactivating and then reactivating the new plugin version (it should give it a fresh install)?

  3. thebeggs4
    Member
    Posted 2 years ago #

    Just gave that a try, no luck unfortunately.

    I've got a dummy version of my site setup to try out updates and design changes and the latest version is actually working there, it's just not working on the real site. The only difference is that the real site has more post categories (40 compared to 33), all the other plugins and so on are the same.

  4. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    Just to give you an update...

    I've been looking into the issue trying to figure out what the source could be, and it could also be host related (mainly GoDaddy). I've notice a lot of other people recommended modifying the php.ini file's max_execution_time. I'm also going through the plugin and writing in some safe-guards, but I was wondering, do you know how to turn on Debug in WordPress?

    Sorry I don't have any more info on this as of yet. Spend most of the day going through the plugin and correcting some things that might be a possible issue. I should have an update available soon though.

  5. thebeggs4
    Member
    Posted 2 years ago #

    Do you mean via this method outlined in the codex?
    http://codex.wordpress.org/Editing_wp-config.php#Debug

    I should be able to do that, if it would help at all.

    As it happens, we will be moving to a new server soon (we have dedicated hosting) but as I said the new version works fine on our dummy site, which is on the same server, has the same plugins and theme, etc. The only difference is that the real site has a few more post categories and a larger number of posts.

    Appreciate you looking into the matter, 0.2.0 is working fine but it's obviously better to use the latest version so if we can get it working, that would be great. Please let me know if there's anything else I can do to assist in the troubleshooting. :)

  6. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    The Debug mode in WordPress might give you an error that I can work with. It isn't something I recommend using on a public site, but its ultimately up to you if you want to use it. A lot of the times I just create an exact copy of the site's files and database, and then put it on a localhost (requires some code to be changed in order to make the switch though). After that, I do a step by step debug run with an IDE. The timeout error isn't much to go by, so a lot of it is guess work, assuming it is related to the plugin.

    I doubt it has something to do with the amount of categories and posts, although I can't rule it out completely. I used a ton of categories to make up for the loss of the post type & taxonomy support in 0.2, and I didn't encounter a timeout error while working on 0.3, but not everyone's problem is the same.

    My main worry however, whether it's the problem or not, is the plugin's database. Although, so far, it looks like things are good. My second main worry though is the WordPress scripting support, but the only thing that relies on scripting while loading the page is the preset database table, and nothing needed to be altered in that part of the JavaScript (still the same as you might of noticed)...but the timeout error does have a relation with scripting. Another problem is that you may need to optimize your (phpMyAdmin) database. Since it's on the same server, its got me wondering if the database might be a lil jumbled up.

    At the moment, I'm working on uploading a new beta version. There were a few things that were throwing 'strict' errors that I fixed up. So if you do plan on using debug mode to see if you can catch an error, I strongly advise updating to Beta 3 first, AND using it as brief as possible.

    define('WP_DEBUG', true); Should be the only thing you need to add or change to get it started.

    I would also recommend changing error_reporting() in <em>site name</em>/wp-admin/load-scripts.php, and, optionally, <em>site name</em>/wp-admin/load-styles.php to...
    error_reporting(E_ALL | E_STRICT);, but depending on what other plugins you have, you might catch a lot of other plugin errors.

    Btw, I found some problems with Activate, Deactivate, and Delete/Uninstall action hooks. So after you update to Beta 3, if you could trouble shoot it one more time by restarting it, it should work and give you a clean install to work off of. Sorry, I took a deeper look into it and also found a bug while handling the action hooks.

  7. thebeggs4
    Member
    Posted 2 years ago #

    Sure thing, I'll give Beta 3 a shot first when it's available and take it from there.

  8. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    Ok, the next beta just got uploaded.

  9. thebeggs4
    Member
    Posted 2 years ago #

    Just tried it, same problem unfortunately. :(

    The "Maximum execution time" error references /wp-includes/post.php, if that helps.

  10. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    Is that all the error says? and it only happens on the plugin admin page?

  11. thebeggs4
    Member
    Posted 2 years ago #

    It mentions the full path to post.php in my WordPress installation which I've snipped out but that's basically it: Maximum execution time, exceeded the maximum time of 30 seconds and then the mention of post.php.

    The timeout error occurs when trying to access the settings page for the plugin. Everything else is functioning correctly so far as I can tell.

  12. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    Well, I'm kind of running out of time to explain it in my next post since i'm about to head out for the evening...but have you made any changes to the php.ini file?

  13. thebeggs4
    Member
    Posted 2 years ago #

    No, I don't have access to it.

  14. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    That's pretty lame. The hosting that I have you can modify the file.

    Is there any way you could ask the hosting admin to grant you access to modify it? Cause it could troubleshoot your problem. If not, my guess is that they are throttling your site.

    If you do plan on going to a dedicated hosting service. It would probably be a good call to make.

  15. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    Ok, just another update...since I have another idea that I was planning on doing in the next subversion anyways. I took a closer look at wp-includes/posp.php and I noticed that I use some of the functions within the file. Which I didn't think would have 'post-type' functions.

    What I'm going to do is slim down the functions to use only what is necessary instead of using the whole object (which mainly means using WordPress functions that don't return objects, I was using get_post_type_object($args) for instance), and also separate some code into different functions. I had most of the varibles in the plugin slimmed down, but something in post.php is hanging.

    After this, I'm out of ideas til I can think of something else. I think its server based. After you told me where it was coming from I started thinking it could be a function in the file, looking at it now, it very well could be the case. I was already planning on slimming down functions and variables, so I'll give it a shot.

  16. thebeggs4
    Member
    Posted 2 years ago #

    We are currently on dedicated hosting, our host will just be moving us to a better server in the future. I might be able to get access to it or be able to get him to make some changes if need be but it might be better to wait since the move will be happening soon.

    Those changes sound good though, I'll give that version a try when it's available. Appreciate all the help so far. :)

  17. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    Just giving you another update...

    I've redesigned some of the main functions that support the custom post types and taxonomies. Post_Types->Taxonomies->Terms are the main 3, and the 'get' functions for them have been slimmed down tremendously to only get what is required for the plugin. It also allows for a lot more adaptability for future upgrades/updates. The other one I still need to code is the functions to get the current post attributes and post type pages (not posts).

    Right now I'm solely working on functions that have relations to /wp-includes/post.php

  18. thebeggs4
    Member
    Posted 2 years ago #

    Sounds great! Thanks for all your hard work. :)

  19. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    Wow, time really has been flying by. Yet, another update, and sorry about the time that it has taken.

    I have the plugin pretty much updated and finished to release the Beta 4 version, but I'm still a little on edge about it, and I don't want to release it to the public until I am 100% comfortable with it this time. So, right now I'm working on a bunch of other things that relate to getting a WordPress environment setup. Plus there's a bunch of other stuff that I've been wrapped up in. So there were a few times I had to take a break from the plugin.

    All-in-all, things look good, but I'm still a lil iffy about it fixing your error. What I did was lighten the load on the memory, and try to process the data a little quicker. For example, some functions return values quicker depending on how much processing the function needs to do at the time.

    Pretty much letting you know that I have not forgotten about you. If you want, I can send you a copy of the beta 4 version via email so you can give it a go, but I also prefer not to share my email address on this site. I currently have a free forum that I'm using to swap files and messages, but unfortunately, it requires registration (which we all get tired of going through), and I don't have a direct link for the download (its still just on my computer). Again though, sorry about the delay.

    The Community Forum

  20. thebeggs4
    Member
    Posted 2 years ago #

    No worries, I'll wait until the public release. Fingers crossed it'll fix the error, unfortunately we won't be moving to a new server at this time but my host might be able to make some changes if necessary.

  21. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    Oh ok. I was kinda hoping you'd be the first to try it out and give me feedback on it before I mark it as the next beta release.

    Anyways, I currently working on getting a WordPress site setup and going public with it. I've mainly been waiting til I got custom posts and taxonomy support for my plugin before I established a public site again. All the plugins and themes I came across didn't have the type of post lists support that I was looking for, and Kalin was originally the one to give the plugin a great start and show a lot of potential. So I had to wait. I'm just glad to I decided to author an alt version of the original. It's been quite the experience =)

    So, it might not be too long til I reply back with a direct link...and I'll be switching from the current 'free' community forum to a WordPress platform with a forum built into it eventually. That mainly has to do with the fact that I need a website that I can also demonstrate this plugin. Along with other reason for centralizing things.

    Glad to hear that your host might be able to help you out. Although, in some cases, he shouldn't have to. On the other hand, he could have the timeout setting ridiculously low, but idk. This plugin has a lot of power to it, and it could be easy to make it a beast, and I already understand there's some downsides if you get too carried away with designing basic code to get things started. Which, ultimately, thank you again for bring this to my attention. So far, your the only one to report this though...

  22. thebeggs4
    Member
    Posted 2 years ago #

    If it'll help out, I could give it a try. I've still got 0.2.0 on hand to go back to, if need be.

    It's strange, everything's fine with the tables and the latest version does work on my test dummy site as I said before. Like I said before I can get by with the old version which is working fine, though obviously it's better to have the latest version with all the updates and features.

    So yeah, if testing it would help out before the public release of Beta 4, I'll lend a hand. :)

  23. EkoJr
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry about the hold up. I had to take a break and give my brain a rest. After getting some things done to try and fix your issue, I still had more work to do on it before I felt comfortable releasing it. After enjoying some of the nice weather, things have been coming together a lot smoother, and I just released a new version that has multiple bug fixes. I still kind of doubt it will fix your issue, but I tried to lighten the load as much as I can.

    If you can, could you let me know things turn out on 0.3.b4. Thanks in advance.

  24. thebeggs4
    Member
    Posted 1 year ago #

    Yeah, still no luck unfortunately. Very strange that it works on my test site, hosted on the exact same server, but not the actual site itself.

    I'm actually using Kalin's Post List now as I don't need anything more in-depth than that as far as features are concerned, but I appreciate all you've done to try and resolve the issue. Best of luck with it moving forward, as I said I think it's a fantastic plugin. :) Unfortunately it just doesn't look like the new versions are going to work for me.

  25. EkoJr
    Member
    Plugin Author

    Posted 1 year ago #

    Something on your site must be making it hang. I just wish I had a way to debug it myself so I can see exactly whats going on and why. Then correct the issue.

    I would recommend using 0.2.0, since it's the last version without the Custom Taxonomy support. Kalin's post list had some bugs when it would query posts, and the "Require Categories/Tags' was one of them. So if your using the require setting, you may want to switch back.

  26. thebeggs4
    Member
    Posted 1 year ago #

    Everything seems to be working fine with the settings I'm using, but I'll certainly consider going back to 0.2.0 if I run into any issues.

  27. EkoJr
    Member
    Plugin Author

    Posted 1 year ago #

    Huh, I don't remember marking this as resolved. Did you get your issue fixed?!? or just mark it resolved?

    Btw, I still have this issue at the corner of my mind, so you may want to check back every now and then to see if the issue cleared up after a new release version.

  28. thebeggs4
    Member
    Posted 1 year ago #

    I marked it resolved as I've basically found a solution and didn't want to keep bugging you about this. I'll definitely keep checking in though.

  29. EkoJr
    Member
    Plugin Author

    Posted 1 year ago #

    I fixed some issues with script registering which could of prevented clients from receiving data properly from Google's CDA. Possibly creating a timeout error. Since then I have switch over to WordPress platform's built in scripts.

    FYI, I have another database upgrade in 0.3.Beta5 (as well as 0.3.Alpha1). So make sure you backup your data first because I currently don't support downgrading versions (or downgrade update for the database).

  30. norbert982
    Member
    Posted 1 year ago #

    hi

    i think i have the same problem. i set up a test site where everything works properly with the same theme, plugins, etc on the same server.

    however when i tried to use it on the real site, it did not work.
    when i click on settings/advanced post list then it says:

    "Fatal error
    : Maximum execution time of 30 seconds exceeded in /wp-includes/post.php on line
    1683"

    This is a great plugin and would be in a key role in listing posts from some custom post type on my site so i don't know what to do.

    Any improvement with the issue? I would appreciate any help, thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic