-
Posts
4,085 -
Joined
-
Last visited
-
Days Won
87
Everything posted by horst
-
Hi Luis, weird thing! I have tested a bit with PW Version 2.3 stable, and it seems that PW and PHP also does a right job. But MySQL could be wrong. I have created a float field and it works as you have described, but also when trying to save 10000.11 it store and retrieve 10000.1 !! But to be short, I have tracked the action until to PW saves the value: "INSERT INTO `field_test_float` (pages_id, data) VALUES('1109', '10000.11') ON DUPLICATE KEY UPDATE data=VALUES(data)" After that, I have looked into that field with a MySQL-Editor and it stores 10000,1 and not 10000,11 (When you use 10000,16, it will result into 10000,2) So, after that I have manually edited the field in the MySQL-Editor, typed 10000,11, save, refresh, and voila there are only 10000,1 in it ! It's definitely a MySQL-thing. But I haven't found a solution, only some posts on stackoverflow and mysql datasheets that I do not understand http://stackoverflow.com/questions/4520620/float-precision-problem-in-mysql http://stackoverflow.com/questions/2160810/mysql-whats-the-difference-between-float-and-double http://dev.mysql.com/doc/refman/5.1/en/storage-requirements.html
-
I cannot say something to the design (background, font, etc) because I have not enough knowledge of these things, but the color combination has at least not enough contrast: http://leaverou.github.io/contrast-ratio/#%23C6DF9F-on-%23BD7254 (So, you don't need to get a green ratio with that tool, but orange would be better)
-
[solved] moved Local-PW online: Error=Call to a member function hasRole()
horst replied to horst's topic in General Support
Oh, that's good! Very kind, Ryan. So with the locally used PW-Version every works fine in PHP 5.2 and 5.3. When I switch to the last PW-DEV-Branch it only works with PHP5.3 (AddHandler php53-cgi .php), but with PHP 5.2 I get this Parse-Error: unexpected T_PAAMAYIM_NEKUDOTAYIM in /htdocs/wire/core/Modules.php on line 241, (but I also have installed all modules again). With the last stable PW-Version I don't get this Parse-Error in PHP 5.2. and everything works fine. If you are interested and want look into this you may do, but for me it is pretty fine to go with the stable Branch. If you want to look into this, you can switch PHP in first line of htaccess, and there are three wire folders to switch between versions: wire.dev, wire.orig, and wire (the last stable). I don't need to use this installation because I have setup allready a second one that I can use. So if you want you can do with it what you want. -
Hi totoff, very nice design, (luftig!). But sorry, no bugs found! only a little typo in Dritttrimester, in $page->name it is with double t in PageHeadline with double t and in BrowserTitle, Submenu right and in all other text it is with triple t.
-
[solved] moved Local-PW online: Error=Call to a member function hasRole()
horst replied to horst's topic in General Support
@Ryan: I have done a big mistake! I have exported the wrong DB-Version. I have local setup pw3b.host.local with DB pw3b pw3c.host.local with DB pw3c and it should be pw3d.host.local with DB pw3d They are different Branches of the same site. But I can't remember why and when, I have switched pw3d.host.local to work with DB pw3c instead of 3d. I'm so sorry that I have wasted your time! -
[solved] moved Local-PW online: Error=Call to a member function hasRole()
horst replied to horst's topic in General Support
@Soma: yes both, mixed, - installed and uninstalled. But don't know exactly which, when and why -
<thats-my-first-lol-post-ever>LOL</thats-my-first-lol-post-ever>
-
I'm so sorry. - I did not want this.
-
[solved] moved Local-PW online: Error=Call to a member function hasRole()
horst replied to horst's topic in General Support
Hi Ryan, many thanks for looking at this. I will do a phpinfo() from local install and send it to you. The modules are: ImagesManager Thumbnails ImageMinSize HorstNogajskiPortfolio (it hooks into ImagesManager->setMetadata) FieldtypeTextUnique ProcessLoginHistory Minify ModulesManager In meantime I have setup a second copy and have disabled most of the modules, (only ImageMinSize and FieldtypeTextUnique is installed) but with no luck. Local it works, online same error as before. -
[solved] moved Local-PW online: Error=Call to a member function hasRole()
horst replied to horst's topic in General Support
@Ryan, if you want I can give you FTP- and DB-Access. It is my new Portfolio, I have worked on the last two weeks whenever I've found time. So, many work has to be done for JS and Styles, but also a lot of PW coding what I don't want do from scratch again (if possible). -
Hi Adam, there was a thread some days ago about that repeaters and sorting: http://processwire.com/talk/topic/3788-sorting-pages-by-repeater-fields-first-entry/ Hopefully there is something useful for you to find.
-
You can edit the title when you use Edit-Link of your initial (first) post.
-
@kongondo: I think this is not right. The images reside in the site/assets/files/ folders, and they can be accessed directly. This is normal behave. @svitcov: your img-urls have no filename, something like myimagename.jpg!
-
Hi, your src of the images i sonly the path to the folder, the files-basename is missing! <img src="/site/assets/files/1011/" /> What do you use in the code of your template-file?
-
[solved] moved Local-PW online: Error=Call to a member function hasRole()
horst replied to horst's topic in General Support
Hi Ryan, have tried the last Dev-Branch, with PHP 5.2 I get Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /htdocs/wire/core/Modules.php on line 241 so, assume that the Dev-Branch is for PHP 5.3.+ When switching to it I have nearly same Error as before, (other Line, but same code): Fatal error: Call to a member function hasRole() on a non-object in /htdocs/wire/core/Page.php on line 1348 I'm checking for returned NULL, and it never passes this point. The very first arrivel throws the error. When I catch it, the var_dump is: object(Language)#219 (25) { ["isDefaultLanguage":protected]=> bool(true) ["template":protected]=> object(Template)#182 (12) { ["filename":protected]=> NULL ["filenameExists":protected]=> NULL ["fieldgroup":protected]=> object(Fieldgroup)#160 (11) { ["settings":protected]=> array(2) { ["id"]=> int(97) ["name"]=> string(8) "language" } ["removedFields":protected]=> NULL ["fieldContexts":protected]=> array(0) { } ["data":protected]=> array(2) { [1]=> object(Field)#151 (9) { ["settings":protected]=> array(5) { ["id"]=> int(1) ["type"]=> object(FieldtypePageTitleLanguage)#141 (7) { ["allowTextFormatters":"FieldtypeText":private]=> bool(true) ["data":protected]=> array(0) { } ["useFuel":protected]=> bool(true) ["className":"Wire":private]=> string(26) "FieldtypePageTitleLanguage" ["localHooks":protected]=> array(0) { ... With the identical DB I have no errors on local setup. How can that be? (I have double checked the DB with dumping both to sql-files and compare with diff tool) -
Topic is solved. Reason: human error I idiot simply have exported the wrong DB to the online installation! ----------------------------------------------------------------------------- Hi, have some trouble when try to move local installation online. I have copied all files via FTP, have deleted sessions and cache files, have set write permissions to folders and updated DB-credentials. Have transferred the complete DB from local to Online. Online PHP version is 5.2.12-nmm4, but I also have switched it to CGI-Version 5.3.18-nmm1. It behaves exactly the same: When try to access root '/' or '/processwire/' or any other url I get the Error: Fatal error: Call to a member function hasRole() on a non-object in /htdocs/wire/core/Page.php on line 1275 The Line in page.php is $template = $this->getAccessTemplate(); var_dump($template) is NULL after that line, - $this->getAccessTemplate() tries to return PageAccess::getAccessTemplate($this); // the method in PageAccess: /** * Returns the template from which we get our role/access settings from * * @return Template|null Returns null if none * */ public static function getAccessTemplate(Page $page) { $parent = self::getAccessParent($page); if(!$parent->id) return null; return $parent->template; } whereas var_dump($this) at this point is: object(Language)#216 (23) { ["isDefaultLanguage:protected"]=> bool(true) ... the default-language! Any help is apreciated.
-
Hi Ovi, Hi Kongondo, haven't worked with it. Don't know it. But Kongondo seams to know it: Without knowing anything about Blog Profile, Kongondos suggestion looks very good and promising:
-
Hi Ovi, the comments get saved, too! So, where are the comments stored in your hirarchy? I think (in PW-language), the comments are Pages too! Without knowing your setup and structure, I think it should be possible to hook into page saveready or after page save - of the comments page. Module: - check if page is a comment, if no: return - if yes, get the product-page and count +1 the hidden field
-
Actually you can build these functionality by using a Repeaterfield that holds your fields for en + de.
- 74 replies
-
- fields
- alter table
-
(and 1 more)
Tagged with:
-
Hi Kixe, the Local Audio Files MP3-DB isn't meant to be a Player. The only reason why there is the YahooPlayer in it, is to show some of the possible functionallity of the DB and because it could be embedded with only one line of code. (lazy me) The Local Audio Files MP3-DB was created to manage your MP3-Collection and let you import hundreds or thousands songs at once, and read the ID3-Tags to build the DB. It gives you some comprehensive tools to assist in building forms and playlists and that like. But all frontend stuff, including Player embedding has to be done by your self. So if you have some time you may want have a closer look to it and may be than you find it useful to setup your Audio MP3 Flash Player on top of it. (This was my intention when writing it) Anyway, nice to see other audio related work here!
-
Hi Kixe, sorry not much time, (will look at it later) //for example: wire()->addHookProperty("Page::player", null, "PageHookPlayer"); function PageHookPlayer($param) { // your code if('code'==$param) { // show player ... } don't know if you can use it like $page->player['code'], but you can use it like $page->player('code'). <kuckstDuHier>http://processwire.com/api/hooks/</kuckstDuHier>
-
Yes, and best for _all_ parts, cells, gutter, padding, etc.
-
If you give .span3 in "/site/templates/css/bootstrap-responsive.css" Line 146 a height: 320px; (for example) it is solved. So I'm not a css expert (lol) but it has something to do with the different heights of the thumbs. And as of .span3 is invisible, from aspect of design it may be better to set the thumbs visibly to the same height?