New Forum Posts: menu Toggle Image problem - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=41073 Recent Bug: Tracker item: #3851 - - File gallery - not able to move back a gallery in root gallery - http://dev.tiki.org/tiki-view_tracker_item.php?trackerId=5&itemId=3851 good morning hi jonnyb: I'm back to make get this thing working! resistance is futile... lol did you see the google link i sent? looks like you make an iframe and post a form into that Ah, very intersting. I did look at the link, but just saw the different plugins offered. tikiwiki: 03marclaporte * r33980 10/trunk/doc/stable.version: [REL] new version My tiki is having problems this morning, when trying to access any page I get an error saying "An error occured in a database query!" I had an issue like this before and it turned out to be a permisssions problem in the /var/lib/mysql/tikiwiki directory. Anyone have a few minutes to check these with me? hi jeff3558 hello jeff3558: have you checked if you are havin the same problem again? any idea what happen to change the permission of /var/lib/mysql/tikiwiki directory the first time? the first time it was moving the tiki to a new install of fedora, it was an idiot problem ;) today it has just stopped working, nothing that I know of has been changed been fine for over 1 year @jeff3558: are you on a shared host? did you host provider upgrade mysql or php? no no, the machine is mine, it is running in a VM on our server in house ok. not sure that seems to be all i can come up with by searching, but I have not upgraded the MySql if my memory serves me right the permissions on all files in the data directory were rw- rw- r-- mysql mysql (I am obviously not a unix person) and that is still the case is this correct? jeff3558: can you check mysql log to see which query is failing? jeff3558: from your description I don't expect your problem to be related with mysql permissions perhaps you need to repair a table? check in phpmyadmin why do we have lib/core/Zend/ and lib/core/lib/Zend ? hi RobertPlummer rodrigo_sampaio: polom RobertPlummer: I just send you an email about i18n :) Got it, thanks! I must have just let it slip.... I will convert those over to php files, and throw them into a tr() RobertPlummer: thank you! RobertPlummer: let me know if you need any help ok thanks sylvieg: in theory we don't have lib/core/lib/Zend anymore sylvieg: I moved all files from lib/core/lib/ to lib/core a few months ago sylvieg: I think it was before 6.0 rodrigo and sylvie thanks was afk for a bit, I'll check repairing a table, ahah thx rodrigo_sampaio.. the svn up was not deleting it sylvieg: welcome rodrigo_sampaio: (hi!) i have a conflict on lang/pt-br/language.php in trunk - use the trunk version? going for it... tikiwiki: 03jonnybradley * r33981 10/trunk/ (24 files in 11 dirs): [MRG] Automatic merge, branches/7.x 33946 to 33979 tikiwiki: 03jonnybradley * r33982 10/branches/7.x/lib/wiki-plugins/wikiplugin_trackerfilter.php: [FIX] trackerfilter: notice hi jonnyb jonnyb: a conflict in pt-br/language.php or fr/language.php. your commit only changed the French file. hi rodrigo_sampaio pt-br had a conflict so i kept trunk as it was fr got some changes merged into it jonnyb: ok, I'm going to check it. but in theory for all language files there should be changes only on trunk. that's what i thought - all your changes seem to go into trunk first i tohught tikiwiki: 03jonnybradley * r33983 10/branches/7.x/lib/trackers/trackerlib.php: [FIX] trackers: notice (assumption at this stage that showlinks and list_mode can be considered as 'n') tikiwiki: 03jonnybradley * r33984 10/branches/7.x/lib/core/Tracker/Field/ItemLink.php: [FIX] trackers: ItemLink - show values when not a link (getOption(2) set) sylvie repairing with mysqlcheck fixed my problem thanks for the help tikiwiki: 03jonnybradley * r33985 10/branches/7.x/templates/categobjects.tpl: [FIX] categories: Don't use $title smarty var as it ends up as being used for the browser title jonnyb: I've looked at it a little closer, looks like I can just use tiki-list_file_gallery.php to do it with a little modding. The function that updates is filegallib->replace_file() lphuberdeau: helped me find it i thought we looked at that one yesterday - it's very specific to $_FILES in the request isn't it? No that is _actionHandler_uploadFile, it does oh right, yes - which in turn calls replace_file() yes, but only after it has checked $_FILES does replace_file deal with history etc? I don't think so Oh yes, it does line 927 archives older file goodo polom polom chealer I haven't had a change to make those updates yet, client troubles, but I will look at possibly doing it tonight. hi RobertPlummer. thanks np chealer rabbitvcs troubles? lol No, payment processing + Tiki ;) RobertPlummer: ah, these clients :-) chealer, how do I use php file get contents, and maintain the user context of the user I'm loggen in as? RobertPlummer: hum, I don't understand. what are you doing... I need to download a file so that I can load it into svg-edit. I was using $().load(), but it is problematic, and I need to do it at the server. RobertPlummer: you want to store to upload an SVG file to Tiki? More or less. I need the file into a js variable. RobertPlummer: so you have an SVG file in Tiki, you're in PHP, and you want to output that file to JavaScript? yes lol svg is all javascript based Authentication is php, as well as file download and save. What do you think? I don't want a bunch od duplicate code everywhere RobertPlummer: I'm not sure I get your question still, by php file get contents you're talking about the PHP function? I think we should have for each "lib" a "user_has_access" function or something of the like, there is just so much duplicate code to check for permissons. Yes, that is right RobertPlummer: so your question is how to check permissions, or what? I'm tyring to download a file so that I can get it into the page tiki-edit_draw.php. After the page loads, I need the file in a javascript variable, what is that best way to accomplish that? RobertPlummer: do they get very big, svg files? cos you could just write it into a js variable with $headerlib Not to big, as big as svg-edit can handle. Right, but I don't want to violate any permissions. json_encode(filecontents($file)) sort of thing jonnyb, So if I do that, how do I check file permissions? is there a filegallib function suitable? I think the closest thing is get_file_info But I don't see any permissions checking. RobertPlummer: so the SVG file we're talking about is in the file galleries That is correct. I know it is easy enough to use the function I just don't want to violate any permissions. what was wrong with $().load() ? It doesn't always work for some strange reason. i've usually used $.get() with type='html' or text in this case I think that perhaps svg-edit isn't loaded yet, I think I know what the issue is. too many iframes 1 I hate iframes in svg-edit? you don't need an iframe to do a get i'd have thought No it is the svg-edit toolkit It is.... a little..... not well thought out I think. i thought i smelt one "delivers value" though! :) They are stinky yes yes yes can you delay the init of it in a setTimeout for instance? so that all your stuff has loaded setTimeout is no good, latency can be longer than that. setTimeouts are stinky too (for this kind of thing) $(iframe).load(function() {}); is all I needed I think, So anybody, before I make the changes.... in tiki-list_file_gallery.php, on line 395+, I don't see $info being set, yet we are updating a file with it. or .ready maybe (or is that document only?) http://api.jquery.com/load-event/ Can I go ahead and set $info by calling $info = $filegallib->get_file_info( $_REQUEST['fileId'] );? seems sensible The problem is that I can update a picture, and it drops description and name if I don't set them. but will it get set again further down? No it wipes it. that's not great And then I can't do anything with the pic after it has been updated. It is just a blank file. nice data is set, but that is all yea, funny stuff. i have to go and eat - maybe be back later have fun! :) RobertPlummer: I hope jonnyb helped you, I still don't understand your question much but I don't know JavaScript much neither anyway. lol RobertPlummer: for $info, it's conditionally set earlier, lines 107, 224, 286 and 333 tikiwiki: 03pkdille * r33986 10/branches/7.x/styles/layout/design.css: Code quality - only one style definition per line (seen on quality.tiki.org) tikiwiki: 03pkdille * r33987 10/branches/7.x/styles/ohia.css: Code quality - de-duplicate a class definition (seen on quality.tiki.org) tikiwiki: 03pkdille * r33988 10/trunk/lib/core/Multilingual/Aligner/SentenceAlignments.php: No changes - indenting file only Tiki draw milestone met for 7, woohoo! tikiwiki: 03robertplummer * r33989 10/branches/7.x/ (3 files in 2 dirs): [FIX] A bunch of fixes for draw, we can now view, edit, and save reliably. !help You can get a more complete list of commands that work with this bot at http://tiki.org/TikiBot . in trunk .. whuy an admin does not have tiki_p_admin_modules i cleared the cache.. sylvieg: someone with tiki_p_admin doesn't have tiki_p_admin_modules?