WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Curl crashing my site (14 posts)

  1. pinkfashionista
    Member
    Posted 3 years ago #

    I am trying to install the plugin from lane66.com. Can someone please look at one of my sites. http://www.beingfashionista.com and tell me how to fix this install problem. The tables seem not to be able to be added and the only way to fix this is to physically remove the plugin folder from the site and the re-start the start.
    Jen

  2. s_ha_dum
    Member
    Posted 3 years ago #

    That is raw php, which you should never see. Unless you edited the plugin, download a new copy and try again. If that fails, contact the plugin author.

  3. pinkfashionista
    Member
    Posted 3 years ago #

    Tried that. They keep telling me to switch hosting providers. Thing is , its my server!

  4. s_ha_dum
    Member
    Posted 3 years ago #

    You own this server? Well, at least you should have all the access you need. Unfortunately your server is IIS and I know virtually nothing about that server. It might be the short format php tags though. :)

    PHP blocks should be opened with <?php and closed with ?>, however, some servers allow short opening tags like so, <?. Other servers don't allow them.

  5. pinkfashionista
    Member
    Posted 3 years ago #

    Yup, It only happens with their plugin. I am dumb founded.
    Jen

  6. s_ha_dum
    Member
    Posted 3 years ago #

    You mean that short opening tags work with other plugins but not theirs?

  7. Sidney Harrell
    Member
    Posted 3 years ago #

    One of the most useful tools in the toolbox is phpinfo. Create a php file on the server (I usually call it phpinfo.php) and put the following line in it.
    <?php phpinfo(); ?>
    Pull it up with your browser, and it will tell you somewhere in the gobbledy-gook that short tags are disabled. If you don't feel like looking for it, just change that one line in phpinfo.php to:
    <? phpinfo(); ?>
    and watch it break.
    Why would a plugin author write using short tags? I could see doing it if you were writing stuff that was always in your control, but if you are writing a plugin for distribution, where you can't be certain of the enviroment it is going to be deployed on, why would you just assume that it was going to be enabled?

  8. s_ha_dum
    Member
    Posted 3 years ago #

    Why would a plugin author write using short tags? I could see doing it if you were writing stuff that was always in your control, but if you are writing a plugin for distribution, where you can't be certain of the enviroment it is going to be deployed on, why would you just assume that it was going to be enabled?

    Yes. I was thinking that too. If you view the source code of pinkfashionista's page, though, the first thing you see is <?. It certainly is suspicious.

  9. Sidney Harrell
    Member
    Posted 3 years ago #

    Absolutely, the problem is with the short tags. I'm just wondering what the plugin author was thinking when he used them. It's like writing a plugin for form submission and assuming that magic quotes are enabled, not sanitizing your input, and wondering why your users got pwned by a sql injection attack.

  10. pinkfashionista
    Member
    Posted 3 years ago #

    Sidney
    Do you think the plugin has another motive? i am more than ready to stop trying to work with them and get someone to write a plugin that does what I need?
    Jen

  11. Sidney Harrell
    Member
    Posted 3 years ago #

    I wouldn't assume any malicious intent, just poor coding practice. For instance, here:
    http://plugins.trac.wordpress.org/browser/lane66-affiliate-tools/trunk/l66_db_tools.php?rev=378546
    on line 3, there's the short tag.
    And here:
    http://plugins.trac.wordpress.org/browser/lane66-affiliate-tools/trunk/l66_functions.php?rev=378546
    on line 1.
    And here:
    http://plugins.trac.wordpress.org/browser/lane66-affiliate-tools/trunk/l66_infopage.php?rev=378546
    on line 1.
    And here:
    http://plugins.trac.wordpress.org/browser/lane66-affiliate-tools/trunk/l66_pagebuilder.php?rev=378546
    on line 53.
    Seems like a poor trade off to make the plugin not work for even a fraction of your users to save typing 4x3=12 characters. You could just make those changes yourself, where you see a <? on those lines, change it to <?php and see if it works.

  12. pinkfashionista
    Member
    Posted 3 years ago #

    Thank you very much for your help. I do not know what I am going to do.
    I like what they seem to offer. But I need it to work first.

    thanks again.
    Jen

  13. Sidney Harrell
    Member
    Posted 3 years ago #

    I went ahead and made the changes to those four files for you. You can download them here:
    http://sidneyharrell.com/l66_pagebuilder.php.txt
    http://sidneyharrell.com/l66_infopage.php.txt
    http://sidneyharrell.com/l66_db_tools.php.txt
    http://sidneyharrell.com/l66_functions.php.txt
    I had to rename them with the .txt extensions so apache wouldn't run them through the php interpreter when you go to the page. When you have the page up, go to File->Save As... and you can rename them in the download dialog to remove the .txt and save them as php files. Then you can copy and paste the four files into the folder of the plugin, replacing the copies of the four files that are already there. Let me know if it works or not, there may be another short tag that I didn't see.

  14. owagu
    Member
    Posted 3 years ago #

    as the "author" of the plugin I was just now pointed to this thread ! It would be easier is users contacted us directly through our proposed channels (forum, direct e-mail etc).

    Having said that, Kudos to Sidney & Thank you for the wonderful support you gave.

    Why would a plugin author write using short tags? I could see doing it if you were writing stuff that was always in your control

    This "plugin" was never meant to be a plugin to begin with and was initially indeed written for our own use hence the short tags. After many requests we decided to share and harden the script for public use. Short PHP tags are a remnant of that process. And as it affects only few people with particular server(settings) the issue apparently persisted for a while.

    Again thanks and we'll post an update with long PHP tags shortly !

    p.s. since we do not monitor the entire internet for support questions, the proper channel for lane66 or feed-monster help is at: http://portaljumper.com/discuss

Topic Closed

This topic has been closed to new replies.

About this Topic