Jump to content
  • 0

IP.SEO non mi funziona piu' dal 31 Luglio


piripicchio

Question

2 answers to this question

Recommended Posts

  • 0

mi spiego meglio...

tramite il comando cron jobs

/admin/applications_addon/ips/ipseo/sources/cron.php

 

ottengo questo errore

 

Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /public_html/..../initdata.php:348

 

alla linea 348 trovo questo che sembra nn andare bene con il php 7 mentre con il 5.6 tutto andava ok

 

@set_magic_quotes_runtime(0);

if ( ! defined( 'IPS_MAGIC_QUOTES' ) )
{
    define( 'IPS_MAGIC_QUOTES', @get_magic_quotes_gpc() );
}

 

lo sostituisco con questo:

 


if( version_compare( phpversion(), '5.4.0', '<') )
{
    @set_magic_quotes_runtime(0);

    if ( ! defined( 'IPS_MAGIC_QUOTES' ) )
    {
        define( 'IPS_MAGIC_QUOTES', @get_magic_quotes_gpc() );
    }
}
else
{
    if ( ! defined( 'IPS_MAGIC_QUOTES' ) )
    {
        define( 'IPS_MAGIC_QUOTES', false );
    }
}

 

ora pero' mi da questo errore quando parte il comando del cron jobs


Parse error: Invalid numeric literal in /public_html/..../admin/sources/base/core.php on line 740

 

insomma da quanto ho capito sono errori perche' quei comandi non vengono supportati piu' dal php 7 ma io ho 5.6 ed e' sempre funzionato...

 

nn so che fare...

Edited by piripicchio
Link to post
Share on other sites
  • 0

RISOLTO :)

ho tolto gli zeri dei mesi  dal file /public_html/..../admin/sources/base/core.php on line 740 

 

prima erano 01, 03, 05, ecc...

 

    protected static $months_31 = array( 1, 3, 5, 7, 8, 10, 12 );
    
   /**
    * Months with 30 days
    *
    * @var        array
    */
    protected static $months_30 = array( 4, 6, 9, 11 );

Link to post
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.

Guest
Answer this question...

×   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.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. to insert a cookie message.