From: Arnaud F. <ar...@cr...> - 2004-10-09 09:10:10
|
Hi all, I was migrating a 1.3.4/gdbm running wiki using my own theme to a cvs export version with MySQL as a backend. I finally managed to import all versions of the pages ! How ? Just increasing the upload max size in the config.ini and adding 'override = 1' in the hidden action array in the WikiForm plugin ... Well ... this was the first step ... Then, I wanted to look if my 1.3.4 homebrew theme (the igenerator.net theme ... don't go look at it, you'll understand why reading a few more lines) was still working in the current CVS, what adjustemets I had too do, etc. Oh, btw, as I run a wikifarm, with each wiki on it's own host name, I run it outside the phpwiki directory and made the corresponding modifications to index.php and to my config.ini ... I linked the various themes inside the local 'themes' directory (I also tried copying them there ...) and, with the exception of the Crao theme working just fine this way, I always have the default theme displaying. I already noted on previous versions that phpwiki always looks to the themes files inside the phpwiki installation directory (that's why I link and do not copy) ... and don't tell me it's a feature ... I also noted that the UserPreferences looks to the list of themes in this directory and not in the local themes directory ... Any clue ???? -- Arnaud Fontaine ar...@cr... Jabber: sh...@ra... ICQ: 3504789 |
From: Reini U. <ru...@x-...> - 2004-10-09 15:39:40
|
Arnaud Fontaine schrieb: > I was migrating a 1.3.4/gdbm running wiki using my own theme to a cvs > export version with MySQL as a backend. gdbm locking problems also? those php guys should be beaten! > I finally managed to import all versions of the pages ! How ? Just > increasing the upload max size in the config.ini and adding 'override = > 1' in the hidden action array in the WikiForm plugin ... local import would have been much faster. just give source=... to action=loadfile. anyway. upload is not very good. > Well ... this was the first step ... > > Then, I wanted to look if my 1.3.4 homebrew theme (the igenerator.net > theme ... don't go look at it, you'll understand why reading a few more > lines) was still working in the current CVS, what adjustemets I had too > do, etc. > > Oh, btw, as I run a wikifarm, with each wiki on it's own host name, I > run it outside the phpwiki directory and made the corresponding > modifications to index.php and to my config.ini ... > > I linked the various themes inside the local 'themes' directory (I also > tried copying them there ...) and, with the exception of the Crao theme > working just fine this way, I always have the default theme displaying. > I already noted on previous versions that phpwiki always looks to the > themes files inside the phpwiki installation directory (that's why I > link and do not copy) ... and don't tell me it's a feature ... where do you want it? we don't want to support local themes dirs. it is not necessary, even not for big farms. or do you really want for every wikifarm'ed wiki a different theme with the same name? same names are forbidden. if so, I would copy Crao for every locally wanted and extendable theme within the themes dir. just give them a useful name. can even be autogenerated from the domain or username. (adjust it in the theme loader) and if you want the wiki admins give access to their theme, just symlink it to their homedir and give them the file perms. > I also noted that the UserPreferences looks to the list of themes in this > directory and not in the local themes directory ... For the themes loader see below: So either PHPWIKI_DIR is empty or wrong. NormalizeLocalFileName is in FileFinder.php, and adds PHPWIKI_DIR if defined. function Theme ($theme_name = 'default') { $this->_name = $theme_name; $this->_themes_dir = NormalizeLocalFileName("themes"); $this->_path = defined('PHPWIKI_DIR') ? NormalizeLocalFileName("") : ""; $this->_theme = "themes/$theme_name"; if ($theme_name != 'default') $this->_default_theme = new Theme; $this->_css = array(); } -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: Arnaud F. <ar...@cr...> - 2004-10-16 13:55:39
|
Le sam 09/10/2004 =E0 17:39, Reini Urban a =E9crit : > Arnaud Fontaine schrieb: > > I was migrating a 1.3.4/gdbm running wiki using my own theme to a cvs > > export version with MySQL as a backend. >=20 > gdbm locking problems also? those php guys should be beaten! No. But a gdbm based wiki is VERY slow on RecentChanges, for exemple, when you are around 1000 pages. Or you need a damned amount of RAM ... Only have 1.5 GB on my server. > local import would have been much faster. just give source=3D... to=20 > action=3Dloadfile. anyway. > upload is not very good. Yes but how do you specify the admin login and password ?? http://user:pass@site/ ?? > > I also noted that the UserPreferences looks to the list of themes in th= is > > directory and not in the local themes directory ... >=20 > For the themes loader see below: > So either PHPWIKI_DIR is empty or wrong. NormalizeLocalFileName is in=20 > FileFinder.php, and adds PHPWIKI_DIR if defined. hmmm .... is PHPWIKI_DIR your wiki local dir or your phpwiki install dir ??? I might have misunderstood this since ... the very begining :) But well ... The real problem is : when I use my migrated theme, phpwiki ALWAYS switches to the default theme. I tried with some other themes like sidebar, wordpress, crao, etc ... they are all fine. And when I try wikilens theme ... it switches to the default theme ... Did you change some fundamental stuffs in the theme API ?? -- Arnaud Fontaine ar...@cr... Jabber: sh...@ra... ICQ: 3504789 |
From: Reini U. <ru...@x-...> - 2004-10-16 14:27:30
|
Arnaud Fontaine schrieb: > Le sam 09/10/2004 à 17:39, Reini Urban a écrit : > >>Arnaud Fontaine schrieb: >> >>>I was migrating a 1.3.4/gdbm running wiki using my own theme to a cvs >>>export version with MySQL as a backend. >> >>gdbm locking problems also? those php guys should be beaten! > > No. But a gdbm based wiki is VERY slow on RecentChanges, for exemple, > when you are around 1000 pages. Or you need a damned amount of RAM ... > Only have 1.5 GB on my server. hmm, I always test with about 1500 pages, with various databases. also db3 and gdbm. And I have only 500MB physical RAM. But this is on windows. >>local import would have been much faster. just give source=... to >>action=loadfile. anyway. >>upload is not very good. > > > Yes but how do you specify the admin login and password ?? > http://user:pass@site/ ?? what for? edit config/config.ini (define the DATABASE_TYPE and optionally the DATABASE_DSN) browse to http://mywiki/PhpWikiAdministration sign in as admin, scroll to [ Load File ] enter the local filesystem path to the saved pgsrc dir and click on [ Load File ]. or as shortcut, use http://mywiki/?action=loadfile&source=/home/user/phpwiki/pgsrc&overwrite=1 >>>I also noted that the UserPreferences looks to the list of themes in this >>>directory and not in the local themes directory ... >>For the themes loader see below: >>So either PHPWIKI_DIR is empty or wrong. NormalizeLocalFileName is in >>FileFinder.php, and adds PHPWIKI_DIR if defined. > > hmmm .... is PHPWIKI_DIR your wiki local dir or your phpwiki install dir > ??? I always have only one php source directory. with one themes directory. Just variosu starter scripts, and optionally various config.ini. > I might have misunderstood this since ... the very begining :) > > But well ... > > The real problem is : when I use my migrated theme, phpwiki ALWAYS > switches to the default theme. > > I tried with some other themes like sidebar, wordpress, crao, etc ... > they are all fine. And when I try wikilens theme ... it switches to the > default theme ... > > Did you change some fundamental stuffs in the theme API ?? Yes, I renamed $Theme to $WikiTheme. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: Philip J. H. <ph...@po...> - 2004-10-09 17:15:41
|
I'm struggling to make almost the exact same transition on my wiki at hollenback.net, from 1.3.4/gdbm to cvs w/ mysql. I found that when I did the upload, two problems occurred: 1. The upload would hang forever on a certain page. I removed that page and the upload then processed all the files. I will submit a bugreport on sourceforge with the page that failed, if anyone wants to test it. 2. For some reason, every revision of the page except the first one was rejected with a message about "conflicting edits". Arnaud, is this the same problem you speak of? If so, could you please tell me exactly what I need to modify in WikiForm.php to force the upload? I was able to get all my pages into the new wiki by first ftping all the files to the server and then using Load File instead of Upload File in PhpWikiAdministration. Then on the result page, I had to click on the "ignore conflicts" button for each page. That was pretty tedious for 500 wiki pages. By the way, that Crao theme is fantastic. Any help making my uploads work more smoothly would be appreciated. Thanks, P. On 10/09/04, Arnaud Fontaine wrote: > Hi all, > > I was migrating a 1.3.4/gdbm running wiki using my own theme to a cvs > export version with MySQL as a backend. > > I finally managed to import all versions of the pages ! How ? Just > increasing the upload max size in the config.ini and adding 'override = > 1' in the hidden action array in the WikiForm plugin ... > > Well ... this was the first step ... > > Then, I wanted to look if my 1.3.4 homebrew theme (the igenerator.net > theme ... don't go look at it, you'll understand why reading a few more > lines) was still working in the current CVS, what adjustemets I had too > do, etc. > > Oh, btw, as I run a wikifarm, with each wiki on it's own host name, I > run it outside the phpwiki directory and made the corresponding > modifications to index.php and to my config.ini ... > > I linked the various themes inside the local 'themes' directory (I also > tried copying them there ...) and, with the exception of the Crao theme > working just fine this way, I always have the default theme displaying. > > I already noted on previous versions that phpwiki always looks to the > themes files inside the phpwiki installation directory (that's why I > link and do not copy) ... and don't tell me it's a feature ... I also > noted that the UserPreferences looks to the list of themes in this > directory and not in the local themes directory ... > > Any clue ???? > > > -- > Arnaud Fontaine > ar...@cr... > Jabber: sh...@ra... > ICQ: 3504789 > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk -- Philip J. Hollenback www.hollenback.net |
From: Reini U. <ru...@x-...> - 2004-10-10 18:38:08
|
Philip J. Hollenback schrieb: > I'm struggling to make almost the exact same transition on my wiki at > hollenback.net, from 1.3.4/gdbm to cvs w/ mysql. > > I found that when I did the upload, two problems occurred: > > 1. The upload would hang forever on a certain page. I removed that page > and the upload then processed all the files. I will submit a bugreport > on sourceforge with the page that failed, if anyone wants to test it. > > 2. For some reason, every revision of the page except the first one was > rejected with a message about "conflicting edits". Arnaud, is this the > same problem you speak of? If so, could you please tell me exactly what > I need to modify in WikiForm.php to force the upload? > > I was able to get all my pages into the new wiki by first ftping all the > files to the server and then using Load File instead of Upload File in > PhpWikiAdministration. Then on the result page, I had to click on the > "ignore conflicts" button for each page. > > That was pretty tedious for 500 wiki pages. sure :) I'm thinking of a new [Overwrite All] button at the generated loading page. This would cause less trouble. > By the way, that Crao theme is fantastic. Yes. There are still some minor MSIE issues, and minor bugs in some templates. > Any help making my uploads work more smoothly would be appreciated. I usually do this manually with the url: action=loadsave&source=/home/my/phpwiki/pgsrc&overwrite=1 There's also a new button in PhpWikiAdministration (cvs) which adds the overwrite option. [ ] [ Load & Overwrite ] But for this you have to call Update before (or action=update), which will update your local PhpWikiAdministration page. > On 10/09/04, Arnaud Fontaine wrote: >>Hi all, >> >>I was migrating a 1.3.4/gdbm running wiki using my own theme to a cvs >>export version with MySQL as a backend. >> >>I finally managed to import all versions of the pages ! How ? Just >>increasing the upload max size in the config.ini and adding 'override = >>1' in the hidden action array in the WikiForm plugin ... >> >>Well ... this was the first step ... >> >>Then, I wanted to look if my 1.3.4 homebrew theme (the igenerator.net >>theme ... don't go look at it, you'll understand why reading a few more >>lines) was still working in the current CVS, what adjustemets I had too >>do, etc. >> >>Oh, btw, as I run a wikifarm, with each wiki on it's own host name, I >>run it outside the phpwiki directory and made the corresponding >>modifications to index.php and to my config.ini ... >> >>I linked the various themes inside the local 'themes' directory (I also >>tried copying them there ...) and, with the exception of the Crao theme >>working just fine this way, I always have the default theme displaying. >> >>I already noted on previous versions that phpwiki always looks to the >>themes files inside the phpwiki installation directory (that's why I >>link and do not copy) ... and don't tell me it's a feature ... I also >>noted that the UserPreferences looks to the list of themes in this >>directory and not in the local themes directory ... >> >>Any clue ???? -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |