Title: Admin panel loads as codes
Last modified: December 7, 2022

---

# Admin panel loads as codes

 *  Resolved [دکتر داروساز](https://wordpress.org/support/users/drdarousaz/)
 * (@drdarousaz)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/)
 * Hi guys
    Happy to be here 😊 I have a problem with my admin panel. I can login
   into my wordpress panel, but when I want to go to dashboard, to plugins page 
   for example, I just lots of codes like the below. I just paste the beginning 
   of the codes. I can’t access to any part of my dashboard. Could you please guide
   me to solve it? My website address is:
 * <!DOCTYPE html>
    <html class=”wp-toolbar” dir=”rtl” lang=”fa-IR”> <head> <meta
   http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ /> <title>Ł¾ŪŲ´
   Ų®ŁŲ§Ł† ‹ ŲÆŚ©ŲŖŲ± ŲÆŲ§Ų±ŁŲ³Ų§Ų² — ŁŲ±ŲÆŁ¾Ų±Ų³</title> <script type=”text/
   javascript”> addLoadEvent = function(func){if(typeof jQuery!==’undefined’)jQuery(
   function(){func();});else if(typeof wpOnload!==’function’){wpOnload=func;}else{
   var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; var ajaxurl
   = ‘/wp-admin/admin-ajax.php’, pagenow = ‘dashboard’, typenow = ”, adminpage =‘
   index-php’, thousandsSeparator = ‘,’, decimalPoint = ‘,’, isRtl = 1;
    -  This topic was modified 3 years, 6 months ago by [James Huff](https://wordpress.org/support/users/macmanx/).
      Reason: link moved to proper field
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadmin-panel-loads-as-codes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16267000)
 * Try [downloading WordPress](https://wordpress.org/download/) again, access your
   server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel (consult your hosting
   provider’s documentation for specifics on these), and delete then replace your
   copies of everything on the server **except** the wp-config.php file and the /
   wp-content/ directory with fresh copies from the download. This will effectively
   replace all of your core files without damaging your content and settings.
 * If you’d like to manually make a backup of your site first, please follow the
   steps at [https://wordpress.org/support/article/wordpress-backups/](https://wordpress.org/support/article/wordpress-backups/)
 * Some uploaders tend to be unreliable when overwriting files, so don’t forget 
   to delete the original files before replacing them.
 *  Thread Starter [دکتر داروساز](https://wordpress.org/support/users/drdarousaz/)
 * (@drdarousaz)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16268677)
 * Hello dear James
    Thanks for your help. Should I delete all files and folders
   in public html folder and just leave wp_content and wp_config? Even should I 
   delete.htaccess?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16269827)
 * > Should I delete all files and folders in public html folder and just leave 
   > wp_content and wp_config?
 * Yes.
 * > Even should I delete.htaccess?
 * If it has non-WordPress things in it, then leave it.
 *  Thread Starter [دکتر داروساز](https://wordpress.org/support/users/drdarousaz/)
 * (@drdarousaz)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16270021)
 * Hello again dear James.
    Thanks so much for giving time to solve my issue. I 
   did it as you told, unfortunately it didn’t work. I tested any idea I read on
   net. Deactivating theme, plugins, downgrading WordPress, clearing cache, fixing
   database tables, … Do you have any other idea please?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16270070)
 * Which version of PHP is your server running?
 *  Thread Starter [دکتر داروساز](https://wordpress.org/support/users/drdarousaz/)
 * (@drdarousaz)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16270627)
 * PHP version 7.4
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16270847)
 * That should be perfectly fine: [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
 * Can you ask your hosting provider’s support to restart PHP?
 *  Thread Starter [دکتر داروساز](https://wordpress.org/support/users/drdarousaz/)
 * (@drdarousaz)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16272889)
 * Hello dear James
    Thanks for your support. I contacted my host company. They 
   told that it was a cache problem. It was solved . Thanks so much again for your
   kindness.🌹🌹🌹
 *  [rithu123shree567](https://wordpress.org/support/users/rithu123shree567/)
 * (@rithu123shree567)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16274777)
 * Hi guys
    Happy to be here 😊 I have a problem with my admin panel. I can login
   into my wordpress panel, but when I want to go to dashboard, to plugins page 
   for example, I just lots of codes like the below. I just paste the beginning 
   of the codes. I can’t access to any part of my dashboard. Could you please guide
   me to solve it? My website address is:
 * <!DOCTYPE html>
    <html class=”wp-toolbar” dir=”rtl” lang=”fa-IR”> <head> <meta
   http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ /> <title>Ł¾ŪŲ´
   Ų®ŁŲ§Ł† ‹ ŲÆŚ©ŲŖŲ± ŲÆŲ§Ų±ŁŲ³Ų§Ų² — ŁŲ±ŲÆŁ¾Ų±Ų³</title> <script type=”text/
   javascript”> addLoadEvent = function(func){if(typeof jQuery!==’undefined’)jQuery(
   function(){func();});else if(typeof wpOnload!==’function’){wpOnload=func;}else{
   var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; var ajaxurl
   = ‘/wp-admin/admin-ajax.php’, pagenow = ‘dashboard’, typenow = ”, adminpage =‘
   index-php’, thousandsSeparator = ‘,’, decimalPoint = ‘,’, isRtl = 1;
 *  [rithu123shree567](https://wordpress.org/support/users/rithu123shree567/)
 * (@rithu123shree567)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16274796)
 * /*OmDev’s calendar library*/#include<stdio.h>#include<string.h>#include<conio.
   h>int getNumberOfDays(int month,int year){switch(month){case 1 : return(31);case
   2 : if(year%4==0)return(29);elsereturn(28);case 3 : return(31);case 4 : return(
   30);case 5 : return(31);case 6 : return(30);case 7 : return(31);case 8 : return(
   31);case 9 : return(30);case 10: return(31);case 11: return(30);case 12: return(
   31);default: return(-1);}}char *getName(int odd){switch(odd){case 0 :return(“
   Sunday”);case 1 :return(“Monday”);case 2 :return(“Tuesday”);case 3 :return(“Wednesday”);
   case 4 :return(“Thursday”);case 5 :return(“Friday”);case 6 :return(“Saturday”);
   default:return(“Error in getName() module.Invalid argumentpassed”);}}int getOddNumber(
   int day,int mon,int year){int res=0,t1,t2,y=year;year = year-1600;while(year>
   =100){res=res+5;year=year-100;}res=(res%7);t1=((year-1)/4);t2=(year-1)-t1;t1=(
   t1*2)+t2;t1=(t1%7);res = res+t1;res=res%7;t2=0;
    Scribd
 *  [rithu123shree567](https://wordpress.org/support/users/rithu123shree567/)
 * (@rithu123shree567)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16274800)
 *     ```
       <ol>
       	<li></ol>
   
       <ul>
       <ol>
       </li>
       	<li></ol>
   
       <ol>
       </ul>
   
       <del datetime="2022-12-09T12:06:12+00:00"></del><blockquote></blockquote><blockquote><strong></blockquote><blockquote><ul>
       </ol>
   
       </li>
       ```
   

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

The topic ‘Admin panel loads as codes’ is closed to new replies.

## Tags

 * [admin-panel](https://wordpress.org/support/topic-tag/admin-panel/)
 * [dashboard](https://wordpress.org/support/topic-tag/dashboard/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 3 participants
 * Last reply from: [rithu123shree567](https://wordpress.org/support/users/rithu123shree567/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-loads-as-codes/#post-16274800)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
