About this topic

  • Posted by Okoth 2 years ago. There are 15 posts. The latest reply is from byron.
  • This topic is not resolved
  1. I have installed the plugin Useful 404's that e-mails me the broken links on my website as soon as they appear.

    I got the following email:

    There is a broken link on page http://***.com/wp-admin/admin.php?page=bwb-photosmash.php

    Someone tried to go to http://***.com/wp-content/plugins/photosmash-galleries/css/ui.core..css?ver=1.0

    It looks like there is one dot to many...

  2. Thanks for the heads up! I'll take a look.

    BB

  3. I've fixed it...will be available in the next PhotoSmash update.

  4. I have other problem with links in photomanager.
    When i get this link to my image in photomanager :
    http://web64.net/wp-content/chesstools/pgntools/en/pgnviewer/problemboard.html?Init=8|8|8|8|8|8|ppQKPPP1|k7%20w%20-%20-%200%201&ApplyPgnMoveText=1.Qc3%20Kb1%202.Qd3+%20Ka1%203.Qd4%20Kb1%204.Qe4+%20Ka1%205.Qe5%20Kb1%206.Qf5+%20Ka1%207.Qf6%20Kb1%208.Qg6+%20Ka1%209.Qg7%20Kb1%2010.Qh7+%20Ka1%2011.Qh8%20Kb1%2012.Qh1+%20&SetBGColor=EEEEEE&SetBorder=1&AddText=%3CB%3Ewhite%20to%20move%20,mat%20in%2012%20moves%3C|B%3E%3CBR%3E%3CBR%3E
    get i only this saved link :
    http://web64.net/wp-content/chesstools/pgntools/en/pgnviewer/problemboard.html?Init=8|8|8|8|8|8|ppQKPPP1|k7%20w%20-%20-%200%201&ApplyPgnMoveText=1.Qc3%20Kb1%202.Qd3+%20Ka1%203.Qd4%20Kb1%204.Qe4+%20Ka1%205.Qe5%20Kb1%206.Qf5+%20Ka1%207.Qf6%20Kb1%208.Qg
    I don´t think, that is some issue with mysql (other generated link is saved in mysql too), maybe only limited number of saved linklenght. Where can i fix your php code, or myabe php on my server ?

  5. Tom,
    That is a very strange one. It looks like there may be some plugin interactions going on that are affecting this.

    That folder structure doesn't look right for image links either...should be wp-content/uploads/....

    You might try turning off plugins and see if any of them were causing a conflict.

    BB

  6. Thank you Byron for your quick answer.
    I didn´t tell you some important details about my site.
    Here is other example :
    http://web64.net/wp-content/chesstools/pgntools/en/pgnviewer/problemboard.html?Init=3k4|8|5pb1|KR6|3P4|4p3|8|8%20w%20-%20-%200%201&ApplyPgnMoveText=1.Rb3%20e2%202.Re3%20Bh5%203.Kb4%20f5%204.Kc3%20f4%205.Kd2%20fxe3+%206.Ke1%20Kd7%207.d5%20&SetBGColor=EEEEEE&SetBorder=1&AddText=%3CB%3EOldrich%20Duras%201926%20-%20white%20to%20move%20draw%3C|B%3E%3CBR%3E%3CBR%3E
    This link is attached to image in Photomanager - link saved OK.
    When i copy this saved link from Photomanager (select all,copy,paste)get i this link :
    http://web64.net/wp-content/chesstools/pgntools/en/pgnviewer/problemboard.html?Init=3k4|8|5pb1|KR6|3P4|4p3|8|8%20w%20-%20-%200%201&ApplyPgnMoveText=1.Rb3%20e2%202.Re3%20Bh5%203.Kb4%20f5%204.Kc3%20f4%205.Kd2%20fxe3+%206.Ke1%20Kd7%207.d5%20&SetBGColor=
    Can you see now difference ? : EEEEEE&SetBorder=1&AddText=%3CB%3EOldrich%20Duras%201926%20-%20white%20to%20move%20draw%3C|B%3E%3CBR%3E%3CBR%3E
    is missing in Photomanager. Photomanager doesn´t write full linkadresse - only 270(?) signs.
    Maybe is it really mysql issue - because these links are generated on-fly from javascript, but the saved link in Photomanager is saved in sqltables ( think i ).
    tom

  7. Tom,

    Those links have so much stuff in them, that I wouldn't be surprised if the HTML filters are doing something to them. PhotoSmash uses the standard WordPress wp_kses filtering system for filtering out XSS attacks (I'm considering including HTML Purifier for the future), so that may be what's going on. You might look for another method of providing the link.

    Or you could be right about the MySQL. If any of the characters in the links are international, there could be something in the encoding.

    Byron

  8. It´s PhotoSmashGallery problem with mysql.
    Look here plz, http://web64.net/main/?p=638&preview=true&preview_id=638&preview_nonce=1a474aee26
    Click on "test" blue link - this ist right link and it works in wordpress.
    Now look here, in gallery http://web64.net/main/?page_id=69&bwbps_page_1=2 and click on description "H.F.L. Mayer - white to move - mat in 6 moves". This saved link in Photomanager isn´t full lenght again.
    I have alternative method for link - i can generate static html of chessboards, but it´s much work.
    I found in web this article about 255 signs in mysql. Can i anywhere set in PhotosmashGallery these values ?
    http://www.meetup.com/mysql-brisbane/messages/boards/thread/1207782 - (instead of VARCHAR (255 char max) field type - use TEXT (63kb) or in rare instances use MEDIUMTEXT (16 Mb) or LONGTEXT (4 GIG).)
    Tom

  9. Hi Tom,

    I'm so glad you got it figured out! You should be able to get it running by changing the bwbps-init.php file. It's inside the Admin folder. Do a search on:

    url VARCHAR(250) NOT NULL,

    and change it to:

    url TEXT NOT NULL,

    Upload your updated file into the PhotoSmash directory, then go into your blog's Admin and goto the PhotoSmash page called: Plugin Info (should be the last one in the Photosmash menu). Then look for the Update DB button...it'll be at the bottom of the Database Info section.

    Don't worry if you see a PHP error message about a file not existing...it's just trying to create the old menu structure.

    Hopefully that'll get you up and running.

    Byron

  10. As a note, WordPress uses Varchar(255) as the length of its links. I'm concerned about opening up beyond 255 due to security reasons. That said, if you were to update PhotoSmash with a version that has the URL set to varchar(250), it would truncate your existing links (after you get them fixed up with the TEXT fix).

    So....I'd hate for you to lose your links. But, here's a suggestion that is just a little extra effort (like 30 seconds at the most)...use a URL shortener like http://bit.ly

    I shortened one of your urls above in, like, 10 seconds: http://bit.ly/4N6L9x

    And it works great! Maybe that is an alternative.

    Cheers,
    Byron

  11. Hi Byron,
    I played with your Gallery and i must tell you - it´s best Gallery for Communities and Masses ;).
    I created other new PhotoSmashGallery on wp 2.9 and i got video to work too. I didn´t still changed to : url TEXT NOT NULL, (thank you for your tip about URL shortener - i found tones wp plugins of URL shortener), but i see now, that changes of values are for my servers better solution.
    I have now a bit harder question for you. ;)
    Look plz now here - other PhotoSmashGallery http://www.freeweb4all.net/freepress/?page_id=669.
    Now for example, i linked Radiohead´s video via my wordpressplugin (simple-flash-video) because when i get directlink to video,isn´t possible to watch via browser (only external with videolan,smplayer,etc).
    This is same way like with chessboards - URL link in PhotoSmash is only the shortcut to other html,php,and javascripts entries.
    This link is cutted and doesn´t work (i´ll fix it today afternoon) - here is right working link :
    http://www.freeweb4all.net/freepress/wp-content/plugins/simple-flash-video/video.php?&vid_image=http://freeweb4all.net/freepress/wp-content/uploads/radiohead-viva.jpg&arguments=a%3A3%3A{s%3A8%3A%22filename%22%3Bs%3A70%3A%22http%3A%2F%2Ffreeweb4all.net%2Ffreepress%2Fwp-content%2Fuploads%2Fradiohead-viva.mp4%22%3Bs%3A5%3A%22title%22%3Bs%3A9%3A%22Radiohead%22%3Bs%3A11%3A%22description%22%3Bs%3A9%3A%22Radiohead%22%3B}
    and problem :).
    Simple-Flash-Video (jwplayer) does open new window in browser and i think, that isn´t so nice like embedded video - look here for original playback : http://www.freeweb4all.net/freepress/?p=328 (click on "Click to watch". This is same thickbox like your, but this thickbox does play embedded videos (.mp4).
    Can you see some way for "hacking" your thickbox for embedded videoplayback and videouploads of videofiles ? Sure is upload and listening of mp3,aac files interesting too :).
    Tom

  12. Hi Byron,
    i changed var in mysql to text - here is small report.
    On WP 2.9 works all fine (old link is fixed and works now).
    On WPMU 2.8.6 (interaktive clickable chessboard - you must find to right move and execute this move on the board):
    1. PhotoSmashGalleries new installed on new (sub)blog = all works fine (http://web64.net/tom/2009/12/29/photosmashgalerie-test/ right thumbnail of name "board2fen").
    2. PhotoSmashGalleries old install, bwbps-init.php changed, DB via button updated = right path to long link in Photomanager (input), but still old path (output) in browser (still everytime after - browsers cache deleted,server restarted, plugin deactivated,acivated, apache+mysql restart). It seems that it is a necessary to manual drop of sqltables.

  13. Hi Tom,

    Thanks for the report back. It sounds like you've still got some issues.

    Do you have any suggestions on how to fix? I'll be glad to do what I can.

    BB

  14. Hi Byron,
    No more some issues - forget it.
    I checked mysql tables after change of var entry in bwbps-init.php and found still old wp_8_bwbps_images table with old wp_attached_id entry. I though first, your DB updatescript has some bug. In PhotoManager was new long linkadresse right saved, but after update of DB from frontend, was still old short link in mysql saved.
    Now i found where was problem. It was my Firefox with cached old entries - Firefox didn´t check, that old short link was changed. I fixed now 2 boards with Opera - and after update with DB button works all fine.
    Tom

  15. Great! Glad to hear it, Tom.
    BB

RSS feed for this topic