Jump to content

Ajuda: Painel criado por cliente não funciona.


Cauane

Recommended Posts

Olá pessoal,

 

Não sei se consegui me expressar bem no titulo, mas vamos lá.

Tenho um cliente que desenvolveu seu próprio painel para os clientes, onde ele trabalha com lojas online, o painel dele em outros servidores funciona normal e no meu ele da pau. 

 

Acredito que seja alguma configuração no servidor vps que tenho, podem me ajudar?

 

http://muchileirotur.com.br/admin/

 

acc: admin 

pass: adminMichel

 

 

Quando entramos no painel admin ele da alguns erros estranho que eu acredito que seja a configuração do apache mas não sei exatamente o que pode ser, alguns erros são apresentados:

 

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in/home/muchile/public_html/application/database/DB.php on line 148

 

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in/home/muchile/public_html/application/database/DB.php on line 174

Table 'muchile_db.stats' doesn't exist

 

Warning: Cannot modify header information - headers already sent by (output started at /home/muchile/public_html/admin/index.php:1) in/home/muchile/public_html/admin/index.php on line 39

 

Podem me ajudar?

Link to comment
Share on other sites

Pessoal,

 

Para ajudar em futuras pesquisar resolvido. 

 

Depois de muito estudar cheguei ao resultado, mudei o parâmetro:

 

output_buffering Off para On

 

output_buffering On (Ok)

 

Obrigado a todos!

Link to comment
Share on other sites

Vá no SSH e  rode o código:

php -i | grep php.ini

Vai mostrar algo assim:

Loaded Configuration File => /etc/php5/cli/php.ini

Essa é a localização do seu php.ini. Em servidores cPanel isso fica em /usr/bin/php***. Eu rodei isso acima num Lamp em Ubuntu Server.

 

 

Mas seu problema não é relacionado com o Output Buffer, mas sim com a exibição de Warnings. Toda vez que você exibe um Warning, Notice, Parser, etc... ou tem qualquer tipo de saída (echo, print) antes de criar uma sessão, você vai  ter esse erro: Cannot modify header information - headers already sent by 

 

Solução: mudar seu error_reporting para: 

error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

Do you agree with our terms?