[GH-ISSUE #124] Embed into Wordpress. #86

Closed
opened 2026-03-02 15:55:39 +03:00 by kerem · 3 comments
Owner

Originally created by @ThomasMattOnline on GitHub (Feb 8, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/124

Hello, I have a basic PHP Wordpress template file and I am trying to embed using the code:

My file is set at: portal/tinyfilemanager.php

So I have set it to there like this:

However nothing happens?

I have looked into Auth users set that to true or false but still nothing! If anyone has any advice that would be extremely helpful! Thank you!

Originally created by @ThomasMattOnline on GitHub (Feb 8, 2019). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/124 Hello, I have a basic PHP Wordpress template file and I am trying to embed using the code: <?php define('FM_EMBED', true); define('FM_SELF_URL', $_SERVER['PHP_SELF']); require 'tinyfilemanager/tinyfilemanager.php'; ?> My file is set at: portal/tinyfilemanager.php So I have set it to there like this: <?php define('FM_EMBED', true); define('FM_SELF_URL', $_SERVER['PHP_SELF']); require 'portal/tinyfilemanager.php'; ?> However nothing happens? I have looked into Auth users set that to true or false but still nothing! If anyone has any advice that would be extremely helpful! Thank you!
kerem 2026-03-02 15:55:39 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@prasathmani commented on GitHub (Feb 9, 2019):

Embedding file manager in another script.

define('FM_EMBED', true);
define('FM_SELF_URL', $_SERVER['PHP_SELF']);
require 'path/tinyfilemanager.php';

check document

<!-- gh-comment-id:462024916 --> @prasathmani commented on GitHub (Feb 9, 2019): Embedding file manager in another script. ``` define('FM_EMBED', true); define('FM_SELF_URL', $_SERVER['PHP_SELF']); require 'path/tinyfilemanager.php'; ``` [check document](https://tinyfilemanager.github.io/docs/#line5)
Author
Owner

@ThomasMattOnline commented on GitHub (Feb 9, 2019):

Embedding file manager in another script.

define('FM_EMBED', true);
define('FM_SELF_URL', $_SERVER['PHP_SELF']);
require 'path/tinyfilemanager.php';

check document

Yeah that doesn't work in wordpress..

<!-- gh-comment-id:462060983 --> @ThomasMattOnline commented on GitHub (Feb 9, 2019): > Embedding file manager in another script. > > ``` > define('FM_EMBED', true); > define('FM_SELF_URL', $_SERVER['PHP_SELF']); > require 'path/tinyfilemanager.php'; > ``` > [check document](https://tinyfilemanager.github.io/docs/#line5) Yeah that doesn't work in wordpress..
Author
Owner

@prasathmani commented on GitHub (Feb 9, 2019):

@ThomasMattOnline , Tinyfilemanager doesn't work with WordPress templates, because WordPress and tinyfilemanager are using same query param ?p= and tinyfilemanager has redirection on render based on file path so wordpress will be through headers already sent error. better try tinyfilemanager as separate file.

<!-- gh-comment-id:462064374 --> @prasathmani commented on GitHub (Feb 9, 2019): @ThomasMattOnline , Tinyfilemanager doesn't work with WordPress templates, because WordPress and tinyfilemanager are using same query param `?p=` and tinyfilemanager has redirection on render based on file path so wordpress will be through `headers already sent` error. better try tinyfilemanager as separate file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#86
No description provided.