Title: Flash navbar from scratch &#8211; undefined function error?
Last modified: August 19, 2016

---

# Flash navbar from scratch – undefined function error?

 *  [raymeo](https://wordpress.org/support/users/raymeo/)
 * (@raymeo)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/flash-navbar-from-scratch-undefined-function-error/)
 * Hello!
 * I have created a navbar in Flash for use in my WordPress blog. For testing purposes
   it is limited to only one dynamic text field at the moment, which is supposed
   to call up the function:
 * `<?php wp_loginout(); ?>`
 * I created a .php document which contains the following:
 * `sites_txt=<?php wp_loginout(); ?>`
 * (sites_txt is the instance name that I assigned to the dynamic text field in 
   Flash)
 * I uploaded the above .php document to my FTP, along with the .swf navbar file.
   The .swf file is calling on this .php file just fine, but I’m not getting the
   result that I expected. Instead of displaying a link to Log In or Out as I expected,
   the navbar displays this text:
 * Fatal error: Call to undefined function: wp_loginout() in /home/content/b/e/i/
   beingray/html/sites.php on line 1
 * **My question: How do I fix this error so that my .swf file will correctly display
   a Log In/Out link?**
 * Note: My WordPress files are not corrupted or missing. I know that much, as I
   can code a normal text navbar with the same function and have it work just fine
   in my header.php.
 * Note2: I’m not sure if it’s relevant, but my WordPress files are saved to the
   directory /blog on my FTP. My navbar .swf file is saved into /flash on my FTP.
   The .php file called on by the navbar is saved to the top level, main directory
   of the FTP.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/flash-navbar-from-scratch-undefined-function-error/#post-1238769)
 * I would put the flash in the folder specified at
    admin – settings – miscellaneous
   and call it from there
 *  Thread Starter [raymeo](https://wordpress.org/support/users/raymeo/)
 * (@raymeo)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/flash-navbar-from-scratch-undefined-function-error/#post-1238772)
 * I moved both the .swf and the .php file to wp-content/uploads and still get the
   same error.
 * Fatal error: Call to undefined function: wp_loginout() in /home/content/b/e/i/
   beingray/html/blog/wp-content/uploads/sites.php on line 1
 * I even tried executing the .php file directly, rather than just looking at the.
   swf file and I got the same error there too.
 *  Thread Starter [raymeo](https://wordpress.org/support/users/raymeo/)
 * (@raymeo)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/flash-navbar-from-scratch-undefined-function-error/#post-1238795)
 * Quick bump before I run off to work.
 *  Thread Starter [raymeo](https://wordpress.org/support/users/raymeo/)
 * (@raymeo)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/flash-navbar-from-scratch-undefined-function-error/#post-1238828)
 * Aaaaand another bump after getting home…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Flash navbar from scratch – undefined function error?’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [raymeo](https://wordpress.org/support/users/raymeo/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/flash-navbar-from-scratch-undefined-function-error/#post-1238828)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
