moving old plugin to new server
-
I have an old 4.0.21 installation where i have a custom developed plugin (by someone else). I’ve moved it to my new server which is 4.9.1 and i do have 2 different questions:
1. When i activate the plugin i get the error message:
“The plugin generated 3 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”2. I cant figure out how to get the output from the plugin onto a page. In the plugin i can see this function which seems to list the entries in the database. But how do i call this function from a page?
// function to
function show_campusmap()
{
global $wpdb;$tenants = $wpdb->get_results( “SELECT * FROM tenants ORDER BY name ASC” ); // .mysql_real_escape_string(intval($_GET[‘page’]), $wpdb->dbh) );
$num_tenants = $wpdb->num_rows;?>
<div style=”position:relative;z-index:2;width:412px;float:left;padding-top:0;padding-left:10px;”>
<h1>Tenants</h1>
<table cellspacing=”0″ style=”float:left;margin-top:10px;”>
<?php
$i = 0;
foreach($tenants as $tenant)
{
if( $i == intval($num_tenants / 2) )
{
?>
</table>
<table cellspacing=”0″ style=”float:right;margin-top:10px;”>
The topic ‘moving old plugin to new server’ is closed to new replies.