I'm trying to install MediaWiki using IIS on Windows 2000 server. I've extracted the files to a location whereby I can see the startpage on startpage/index.php, however when I click to "set up the wiki" (startpage/mw-config/index.php), the next page takes around 10-15 minutes to load.
I can see the header and the sourcecode right away, but the page itself does not show up for at least 10 minutes. I've tried copying the sourcecode into an html file and saved it at startpage/mw-config/index.html but it still takes the same amount of time. My set-up meets all the requirements for MediaWiki.
I've tried making changes to the output_buffering and the register_globals in the php.ini file as suggested when searching for slow php/iis loading times, however it doesn't seem to make any difference.
I'm logged in as a normal user, not an admin user, could that be an issue? Otherwise I'm at a loss to why the page is loading, but taking 15 mins to load when the sourcecode is available right away.
Thanks
Ana's solution: I completely missed that it was duplicating `/mw-config/index.php/mw-config/index.php. Removing one of the duplicates in firebug caused the page to load normally.
Related
As the subject states, I have made some minor CSS updates via one of the LESS files on a Ghost theme but when I refresh I don't see the changes reflected. I'm assuming since I'm new to LESS and node that perhaps I'm missing compiling LESS to convert it and save the CSS output. Is this like a "watch" task I need to add to a gruntfile? I'm trying to understand how is that all these work together.
For those as me new to LESS and facing similar issue, I found this article really helpful http://ericnish.io/blog/compile-less-files-with-grunt/ after some reading I was able to update LESS files and see the results on css styles and the site.
I created an admin section for a website of mine using PHPMaker - as I usually do. The website is made from scratch, no wordpress or anything else involved.
In some apparently "innocent" tables, if I try to edit them, I get a 403 error. It never happened, and I used PHP maker for at least 15 websites of mine, so I am puzzled.
It happens only on 2 tables out of 15, and as said, they are fairly innocent. Nothing fancy compared to the other ones.
This is what I've tried:
there was no .htaccess file in the admin directory, so I also tried to insert an empty one
clearing the cache
visiting the page in private mode
all file/directory permissions are ok
regenerating the project and uploading it again, to a different directory
What else can/should I check?
There is a .htaccess file on the root directory of the server to handle some "pretty url", but it should not matter since the admin section is under a specific directory. Or should it matter?
Thank you
At least, I found the problem: every time I was trying to insert an iframe or a script, somewhere somehow somebody (...) was parsing it and it was blocking it for - I guess - security issues, so I let the user to insert the script without the <script> tags, added later in PHP simply with:
print "<script>$readFromDB</script>";
In each insert action, PHPMaker will parse the word
<script
and converted to
<s<x>cript
You have either get the inserted rowid and update the value again OR each time you have to remove the '< x >' to view the value correctly.
Take a look at my answer here: PHPMaker issue
I am developing a prestashop module for an xml feed import, the problem I get is when the file is large, the loop get long and the browser times out. Just to let you know, I have increase many values like set_time_limit, max_execution_time in php.ini, but it didn’t work.
Please give a suggestion.
If you import products,did you try to turn off Indexation in Preferences -> Search ?
In virtualmin > Server Configuration > website options and increase “Maximum php script run time” worked for me.
But what places it made changes still not clear to me, because I increase execution time in php.ini manually and it didn’t work.
I suspect this could be something faulty with Excel (although I keep an open mind), but I wondered if anyone knew how I could get around this apparent bug:
I wish to create Excel spreadsheets which link to pages in a local wiki (running MW 1.14.0, full details below) where those pages don't yet all exist.
The idea is that over time we will fill in details of the pages, but we would like to create the links now (because copies of the Excel files will get sent out to various internal users and it will not be feasible to go track them down and add links later once the pages are created)
The problem is that when I create such a hyperlink in Excel and then go to follow the hyperlink, I get a message back indicating that the page does not exist. The full text of the message is:
"Unable to open http://. The Internet site reports that the item you requested could not be found. (HTTP/1.0 404)"
This happens on our site or in fact if you link to a non-existant page on wikipedia (e.g. http://en.wikipedia/wiki/Swed53rf). Whereas if you put such a link into a browser you get the correct response (which is to be taken to a page indicating that there is no such page but that you can create it by following the usual link)
Is there some setting on Apache that I might need to configure / override to make sure it returns a valid server response to Excel?
Creating links to existing pages works fine. I appreciate that in theory we could go around creating all the pages that are required, but some of the people involved in the project (creating the initial Excel files) do not / cannot use our wiki and it would be better if this just worked as it would appear it should rather than having to try to add steps to work around it in this way.
I also wondered if it were anything to do with the short URL reformatting. Our wiki, like wikipedia has short URLs, eg:
http://server/w/index.php?title=User:Joe_Blogs/Sandbox
can be reached from
http://server/wiki/User:Joe_Blogs/Sandbox
but including hyperlinks to the full name versions of the pages does not resolve the issue.
The version of Excel being used is Excel 2003 (SP3)
I have discovered that this also happens with Word 2003 (I imagine they are using the same code). However the desired behaviour occurs with Lotus Notes (a miracle, as it's rubbish in so many other ways! )
I have not done any significant development on Apache, but I could consider some form of custom page that re-directs to the non-existent wiki page if Mediawiki changes were deemed to complex/tricky. (although I'm not particularly sure where I'd start with this idea, I'm guessing some sort of URL parameter to accept the destination pagename might be a possible approach)
Any helpful suggestions gratefully received!!
[FYI: I have posted a question on MWUsers forum (www.mwusers.com) too after Googling this to no avail! I'll update the forum response there if I get an answer here or vice versa]
Many thanks,
Neil
Running on Ubuntu Server 8.10
Product Version:
MediaWiki 1.14.0
PHP 5.2.4-2ubuntu5.6 (apache2handler)
MySQL 5.0.51a-3ubuntu5.4
Installed extensions:
CategoryTree (Version r44056)
Renameuser
CategoryTree (Version r44056)
ImageMap (Version r35980)
ParserFunctions (Version 1.1.1)
StringFunctions (Version 2.0.2)
Not sure how to get Excel to let you go to a page which turns out to be a 404, but as a temporary workaround, you can hack out MediaWiki's 404 reporting on missing pages...
In MediaWiki 1.14 or 1.15 releases this will be in Article::view() in includes/Article.php:
if( $return404 ) {
$wgRequest->response()->header( "HTTP/1.x 404 Not Found" );
}
Note that the latest dev code is a little different, but you can find it where it sends the same header in the same file. :)
Wikipedia returns a 404 with a redirect which gets you to the page you want; my guess would be that Excel's rendering engine is not following the redirect.
You could try capturing the conversation in Wireshark, both with a browser and with Excel. That might show you what's happening differently.
Surely once you roll out the new pages, the links would start working, though?
I can upload a 250MB file to sharepoint 2007 but nothing larger. I have changed the two webconfig file, set the admin site to 2047MB and it still fails.
Please help this was to be completed asap.
thanx
SPS ignore the file size setting for max file size, according to various testings.
Instead see KB 925083 for info on how to change size http://support.microsoft.com/kb/925083
Please define "fail". Any specific error message, timeouts, etc?
How do you upload your files? Webinterface, WebDav Put, RPC, etc?
When you say "modified web.config", I assume you mean you setting maxAllowedContentLength property of the requestLimits node to something huge. Have you verified you set this correctly, by using small values and checking if it indeed blocks files?
Regarding step 3, or did you mean the executionTimeout setting on the httpRuntime? Verified you set it right by setting it to too small a value an checkin that it cuts short your requests?
By "setting the admin site", I assume you mean you set the Maximum upload size on the Virtual Server Settings page to something hue. Again, have you verified what the behaviour is when you choose too small a value there?
Note how step 3-5 are just the generic checklist shaped like questions... usually it helps going through the steps one more time.
Looks like you have a situation where there are several "gates" that the file has to go through and it is getting caught by the narrowest.
There is also the question is it getting stopped during the upload or when it is being written to sharepoint.
Based on the other answers / cooments sounds like you have checked most things. There are a couple more you could try:
Is there anything in machine.config that is blocking your settings in web.config (typical overrideable = false)
Are the settings cached, have you tried restarting the machine?
here are a couple of links that might help:
http://spsstuff.blogspot.com/2006/03/how-to-change-maximum-file-upload-size.html
http://support.microsoft.com/kb/925083