Accessing MediaWiki extensions - php

Currently I am working with MediaWiki. I followed the tutorial https://www.digitalocean.com/community/tutorials/how-to-install-mediawiki-on-ubuntu-14-04 and successfully installed it on my Ubuntu 14.04 system. When I restarted the Apace server, everything worked and I could see the Main page perfectly.
Now I am trying to use the WikiEditor extension. It's already installed in /var/www/html/extensions folder. I have also modified LocalSettings.php file in /var/www/html/ folder and appended the following line.
require_once "$IP/extensions/WikiEditor/WikiEditor.php";
When I browse to localhost/index.php/Special:Version, I can see WikiEditor listed there. But when I go to localhost/index.php/Special:WikiEditor, it says "No Such Page".
So I would like to know the complete url to access a MediaWiki extension.

This extension does not have a Special page, so you can't "access" it.
What that extension does is provide a toolbar for better user experience when editing a page. When you create/edit a page you will see something like the image bellow.
Maybe you have to clear your browser cache and reload the page first.
If what you want is to customize (add buttons, etc), you might take a look at this page.

Extensions are not special pages,
Extensions declare special pages through 1) classes extending SpecialPage 2) declaration of these classes into $wgSpecialPages array.
See BlogPage extension for example.

Related

file path from the url disappears on redirect

I am still very new to Moodle. I have tried to set up Moodle since this week but it is not working well. I have installed all the underlying server apache and mysql. I have also enabled the required extensions in the php.ini file:
php_curl.dll,
php_fileinfo.dll,
php_gd2.dll,
php_intl.dll,
php_mbstring.dll,
php_mysqli.dll,
php_openssl.dll,
php_soap.dll,
php_xmlrpc.dll.
However, whenever I want to navigate to another page or clicking the log-in button, I get this page here where the php extension is dropped all the time. So, what you can see is not the moodle site, but just a hierarchy of files. I always have to manually augment the url by the php part, but this is not a solution.
I hope you can help me out. Thank you very much.

Joomla moved, now index.php redirects me to root folder

A friend of mine asked me for a favour, to move his website. The programmer who made it, send me an archive with the database, and the rest of the files needed. I've installed it on my localhost, with apache, php and mysql installed on it.
I have a problem with it. If I go to localhost/mgro/index2.php, it shows somehow a minimal version of the website, but if I click on something, it gets to index.php?something_else_here and it works. If I go to localhost/mgro I just see the files, and if I go to localhost/mgro/index.php it redirects me to localhost/mgro.
About the configuration file, I've used the configuration.php-dist file, with new info in it. What I've changed was just the database, user and password for the database.
Basically, everything works fine, except that index.php with no requests, because it "backs" me into the folder
NEW PROBLEM: If I click on an Add to cart button, it redirects me to the website that is online.
Is this Joomla 1.5 or Joomla 2.5.x / 3.0? I'm going to guess that you have a potential issue with the live_site variable in the configuration.php file, especially if you're using Joomla 1.5. Make sure that it is configured to your localhost's live site URL directory.
Some other things to check:
1) If you're using SEF urls you need to use a .htaccess file. Usually the one Joomla' includes by default works (if you don't have it you can redownload it from Joomla's code repos: http://joomlacode.org/gf/project/joomla/frs/?action=index
2) When logged in go to global configuration and check the option "URL rewriting". You can try switching it off. (On does require the .htaccess file mentioned before).
3) If you're just seeing files when you hit the directory then Apache isn't configured to load .php files. Since you're running a localhost you'll have to track that down somehow.
Some other notes:
-Index2.php isn't anything, don't use it.

userfunctions.php why I can't add this file in Typo3 fileadmin/

I am following a tutorial how to create modern templates using typo3.the website with the tutorial
I am instructed to add a php file under the in fileadmin/userfunctions.php, but for some reason Typo3 says that this file is not allowed>
The red error is more than enought to answer your question
php extension is not allowed to upload. Just add the file manualy to the directory. By clickng to the folder nat via web panel
It is sometimes because of BE allowed file extension.
Go to TYPO3 Backend
Install Tool All Configuration
[textfile_ext] -> check this input box whether php, php3, phtml are
listed in this box or not. If no, include them.

Newly added file requires .php extension, old files do not

I am taking over for a developer who left a website running a linux/apache on freebsd. I need to add a php page to the site. He used Smarty templates as well. I copied an existing php page and its corresponding template file. Made changes to the template file and it created a compiled newfile.php.tpl file in the compiled directory.
All the php files can be accessed WITHOUT the .php and work fine. If I refer to the newfile without .php I get a 404 error, with the .php it works fine.
.hataccess. I have done a find on the the system and for this website, there does not appear to be a .htaccess file. Even if there were the rest of the pages work fine without php extension.
Things I tried grep for the mod rewrite, i did a find on .htaccess, i rebooted. So is there some cache i am missing or some other basic thing, apache, php? I have put in about 12 hours on this. The only thing i found remotely was a url_rewriter.tags section in a phpcgi.html file.
Went to lighttpd.conf file researching #rodneyrehm sugg. I found a fastcgi.server section and there is a
url.rewrite-once = (
section of code with the specific pages for the site. So I added my new page and all is well.

Error :The requested url /users/view is not found on this server

I have installed the WAMP server in my windows machine .I have downloaded a simple cakephp application called "samplecake" from net and copy that application to c:WAMP/www And try to run the application using http:localhost/samplecake then it shows the login page (in routes.php i have redirected the '/' to users/login).In my controller the afterlogin redirect to /users/view , But after the successful login it will redirect to /users/view
but it shows an error:Not Found
The requested URL /users/view was not found on this server.
I have tried all the actions that are present in user_controller like /users/add, /users/edit but it shows the same error Not Found he requested URL /users/add was not found on this server
How can i solve this Not found url problem if anyone knows please help me thanks in advance.............
Have you enabled the rewrite module in WAMP? This will make the URL rewriting in .htaccess possible.
Info on how to do so: http://www.anmsaiful.net/blog/php/enable-apache-rewrite-module.html
Seems like a .htaccess is missing. Please check if you have copied those. Maybe your Windows hid those files, make sure to have enabled that you can see all files on your system.
Open explorer
Select the Tools menu and click Folder Options.
After the new window appears select the View tab.
Put a checkmark in the checkbox labeled Display the contents of system folders.
Under the Hidden files and folders section select the radio button labeled Show hidden files and folders.
Also, please consider working on your accept rate. Please have a view into the FAQ why this is important.
1 more addition to the above:
If its windows go to your wamp folder,
Under Folder and search options >> Check the option "Display the extensions for known file types" to verify its a valid php file.
Case: you create a text file and you save it as test.php if this option "Display the extensions for known file types" in unchecked. It appears: test.php instead of test.php.txt

Categories