![]() |
|
Comments disabled in latest version - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Comments disabled in latest version (/thread-4831.html) Pages:
1
2
|
Comments disabled in latest version - sbillard - 2009-10-08 `updateThumbPreview()` is a Javascript function. It is defined in admin.js. No way that PHP should be trying to execute it. Maybe your files have got corrupt. Comments disabled in latest version - slaattnes - 2009-10-08 Yes. I can try to upload the build a second time? Weird that both the last and this build would be corrupt though. Comments disabled in latest version - slaattnes - 2009-10-09 I now deleted the test build and uploaded 4516. This time too the general sidebar on albums are missing: http://folk.ntnu.no/danielto/zenphoto/zp-core/admin-edit.php?page=edit&album=test It can't be corrupt every time on different servers and different builds. This is truly a weird problem. Do you get the same error as last time acrylian? Edit: `<b>Fatal error</b>: Call to undefined function updateThumbPreview() in <b>/web/folk/danielto/zenphoto/zp-core/admin-functions.php</b> on line <b>1209</b>` I can't find updateThumbPreview() in /zp-core/js/admin.js Comments disabled in latest version - acrylian - 2009-10-09 That function is defined in admin.js around line 191 but only in the nightly build, not the 1.2.6 release. If it is not there you probably have mixed up files with the 1.2.6 release somehow. Comments disabled in latest version - slaattnes - 2009-10-09 No. I found it now: ` function updateThumbPreview(selectObj) { if (selectObj) { var thumb = selectObj.options[selectObj.selectedIndex].style.backgroundImage; selectObj.style.backgroundImage = thumb; } } ` This is from admin.js on the server and the fatal error from admin-functions.php on line 1209: `<script type="text/javascript"><?php updateThumbPreview(document.getElementById('thumbselect')); ?></script>` Comments disabled in latest version - acrylian - 2009-10-09 Maybe a file permission issue so that it is not loaded? Comments disabled in latest version - slaattnes - 2009-10-09 Hm I just set everything to 777 but there where no difference. Comments disabled in latest version - acrylian - 2009-10-09 I guess we are running ouf of ideas rapidly... You need another server..;-) Comments disabled in latest version - slaattnes - 2009-10-09 I uploaded 1.2.6[4335] to the same server and in that version the general sidebar works so isn't it something wrong with the never builds then? Comments disabled in latest version - acrylian - 2009-10-09 It is really getting weird now. I see it indeed on one of my three local svn installs (the bottom buttons are also missing). It even remains in that one after I got the files fresh from svn.. Strange things are happening here, as now in the one that shows all sidebars TinyMCE is not loaded anymore without any noticably reason or error... Will talk with sbillard... Comments disabled in latest version - acrylian - 2009-10-09 After some odyssey I think I fixed it. Please try the svn or tonight's nightly so we are sure... Strange one this was... Comments disabled in latest version - slaattnes - 2009-10-09 I'll do that:-) Comments disabled in latest version - slaattnes - 2009-10-09 It works wonderfully now:-) Comments disabled in latest version - acrylian - 2009-10-09 Great!..:-) |