• Resolved Maiskolben

    (@maiskolben)


    Hello!
    I try to view the index.php (typing directly the url) and see the output index.php, so far so good. When I try to view a example.php in a various plugin folder (e.g. “wp-vontent/plugins/exampleplugin/example.php”), theres no output but an internal server error 500.

    Anyone in here an idea what is this for a thing?

    PS: At other Webspaces and ealier wp installations I can see the example.php without a message and with the same php-code (cause it’s the same plugin)! Chmod is 755, php is an apache module.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can’t directly access most WP files, including plugin files, without triggering some kind of error because accessing them out of context– outside of the WordPress code flow– means that there are classes and functions that the file needs that have not been loaded. Does that make sense?

    Thread Starter Maiskolben

    (@maiskolben)

    Yes, it makes sense! But when code comes with the plugin and a plugin calls a playlist.php, a flashplayerplugin cannot load its generated xml-list. And I know another site that allows the direct typing to this playlist.php url… hmm, maybe the plugin isn’t functioning under WP 2.9.2 then…

    Whether you can access that playlist.php file directly or not depends on how its written. If it calls any WP functions, as most plugin files do, (and WP hasn’t been included into the file) it isn’t going to work, but a PHP file that doesn’t use WP functions should work. You may also have .htaccess or file/folder permission issues that are causing you trouble. Its hard to say for sure.

    Thread Starter Maiskolben

    (@maiskolben)

    Ok, thank you a lot!
    I see, that there’s no way to get these plugin running for 2.9.2. And it’s ok! I will look up for another good plugin for embed music to my pages…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘index.php vs. example.php’ is closed to new replies.