Viewing 15 replies - 16 through 30 (of 37 total)
  • If those lines are inserted as described, then it should be working.

    Messages about “unexpected >” imply a typo either in what you’ve added, or in the file you’re including. Unless we can see the file in the state that caused the error message, it’s very difficult to advise you what to do.

    Thread Starter tonywright

    (@tonywright)

    pasted sidebar.php with crappy coding included:

    https://paste.uni.cc/7885

    thank you very much.

    Hmmm. Both lines 1 and 69 look fine. If you’re still getting the “unexpected ‘>'” error with that, then there may be something broken in the copy of rotator.php that you’ve downloaded.

    Unless anyone else has any ideas?

    Thread Starter tonywright

    (@tonywright)

    i dont think anyone wants to help me ??

    here’s the pastebin of the rotator.php

    https://paste.uni.cc/7888

    for some reason it’s one continous line.

    thank you for your continued patience and help. much appreciated.

    Thread Starter tonywright

    (@tonywright)

    BINGO…kinda…

    It seems that you were right. There was a problem with the rotator.php being a continous one line.

    I pasted the script into textpad and straightened that up properly.

    Now I’m getting a different error at the bottom of the sidemenu at https://www.rapnews.co.uk

    It says:

    Unable to read ini file.

    Do I need to install a plugin that lets ini’s be read, like I had to install a plugin to enable php within pages?

    Try replacing rotator.php with this sanitized version:

    https://pastebin.com/398012

    d’oh… wasted time reformatting that myself…

    Where is your ini file located? It should be in the same directory as rotator.php

    Thread Starter tonywright

    (@tonywright)

    my ini file is located correctly, in the same place as the rotator and sidebar php’s.

    not only did the error ‘unable to read ini file’ appear, but the footer of my page disappeared.

    using you gratefully received sanitized version, the ‘unable to read’ error appeared in the sidebar, whilst the page footer disappeared along with my ‘random quote’ script and a category which was being displayed.

    starting to think i should give up trying to set this up for sponsors and just close my website down!

    thanks.

    Sounds like the user that PHP runs as doesn’t have access to read the ini file so in your FTP program or your cPanel’s file manager try changing the permissions (commonly referred to as CHMOD) to 766.

    Thread Starter tonywright

    (@tonywright)

    im the top user. i have full power to do everything. but just for the sake of things, how can i double check this?

    Thread Starter tonywright

    (@tonywright)

    i changed the permissions of the sidebar php, image.ini and rotator php files to 766, but i still get the ‘unable to read ini file’ error. i’ve even changed the whole public folder to 766 and i get the same error.

    do i change all the permissions back? is this a security risk?

    thanks

    Try setting:

    $IMG_CONFIG_FILE = 'home/hiphopne/public_html/images.ini';

    (editing the path appropriately for where the ini file is.

    chmod’ng everything like that wasn’t really a good idea but there is no simple way to set everything back to what they were but anything that needs to be writable will cause errors now as those directories/files need to be 777.

    Thread Starter tonywright

    (@tonywright)

    I’m afraid adding that line didn’t work. It simply appeared as text on the sidebar. I was putting it where I was previously placing:

    <?php showImage(); ?>

    Sorry I meant try editing rotator.php and replace the current line that sets $IMG_CONFIG_FILE with something similar to what I quoted above with the full path to the file.

    Thread Starter tonywright

    (@tonywright)

    this pulled up the same ‘unable to read’ message. it also made my footer and ‘top 5’ category link disappear.

    am i doomed?

Viewing 15 replies - 16 through 30 (of 37 total)
  • The topic ‘a simple problem’ is closed to new replies.